# Creating a .dylib file

**URL:** <https://community.freefem.org/t/creating-a-dylib-file/1545>\
**Category:** FreeFEM installation\
**Created:** [February 22, 2022, 3:22am UTC](https://community.freefem.org/t/creating-a-dylib-file/1545 "2022-02-22T03:22:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amin](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Amin](https://community.freefem.org/u/Amin)\
**Post date:** [February 22, 2022, 3:22am UTC](https://community.freefem.org/t/creating-a-dylib-file/1545/1 "2022-02-22T03:22:41Z")

</div>

Hi. I want to create a .dylib file for my project. So I downloaded the example of creating a class from this [link](https://github.com/gh4ag/freefem_class_examples/tree/master/class) and ran the .sh file. The .o and .so files were created and then I got the following error. however, the load\_d.edp runs without any errors. I will be grateful for any help.

```auto
➜ class git:(master) ✗ source run_d.sh
g++ -c -fPIC '-I/usr/local/lib/ff++/4.10/include' -g -O2 -DNDEBUG -O3 -mtune=generic -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -I/usr/local/ff-petsc/r/include -I/usr/include/hdf5/serial -I/usr/include 'class_d.cpp'

g++ -shared -fPIC -g -O2 -DNDEBUG -O3 -mtune=generic -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -I/usr/local/ff-petsc/r/include -I/usr/include/hdf5/serial -I/usr/include 'class_d.o' -o class_d.so

g++: error: dynamic_lookup: No such file or directory
g++: error: unrecognized command line option ‘-bundle’

```
