babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.07k stars 183 forks source link

cannot find -ldorcania #217

Closed mehtajaimin closed 2 years ago

mehtajaimin commented 2 years ago

I am cross compling on ubuntu. I have been able to make and install orcania and I see it in /usr/local/lib but I get this error when trying to make yder

arm-linux-gnueabihf/bin/ld : cannot find -ldorcania

I check the ldconfig -v and it does show the entry for lorcania. I am not able to figure out why the linker is not able to find lorcania. I would be greatful for any help on this.

babelouest commented 2 years ago

Hello @mehtajaimin

Maybe running ldconfig could help to refresh the linker, or you can specify the orcania path during linking:

gcc -o out source.c -lorcania -L/usr/local/lib.

If none of those are working, can you post more information on what commands you are using, it might help to find a solution...

mehtajaimin commented 2 years ago

Thank you, I added the link directly in the make file and it was able to link. Thank you for looking into this.

babelouest commented 2 years ago

No problem, happy hacking!