On 08/12/2016 03:29 PM, Andrew Birt wrote:
> Thanks Jeroen, g++ is my usual haunt so it's just a habit I guess !
>
> Tried gcc instead and now it looks like it can't find the libraries (?)
Adding -L will only tell the linker where to look for the libraries, but 
it won't tell it which library you actually need.
In this case you need to specify that libcodec2 needs to be linked, 
which is done with '-l' (small l).
You also don't need the freedv_api.c file as its contents are already in 
the library. You need to have it .h file in the include path.

So you probably need to issue a command like this:

gcc \
-I/home/g3nr/free-dv/src/ \
-I/home/g3nr/free-dv/build_linux/codec2-dev/src/ \
freedv_tx.c \
-o foo \
-L free-dv/build_linux/external/dist/lib/ -lcodec2


Regards,
Jeroen


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to