Linking OS shared libs
I've been strugling with this for a while and I can't make it work.
I need to link my project to a shared library (libcbor), which is located on /usr/local/include.
Reading the project's Makefiles, i found the variable STDINCLUDE, so i fixed the `fatal error: cbor.h: No such file or directory` adding the following line to the app's Makefile
But the next problem I got is how to tell the linker to use that lib.
src/built-in.o: In function `main':
How can I tell the linker to _link_ that lib?
btw, compiling with `cc -lcbor src/main` works.
* PJK/libcbor https://github.com/PJK/libcbor/
-- Martin Iñaki Malerba inakimmalerba@... | +54 02945 15468443 inaki@...
toggle quoted messageShow quoted text
From your message, I can't tell if you've taken a look at the docs on this:
Were you able to look at the sample app described there to see if it can be adapted for your purpose?
On Sat, Nov 4, 2017 at 11:48 AM, Inaki Malerba <ina@...> wrote: