gcc - Linking troubles in C -
I have an test.c which is using code from two libraries. Is linked to a static link (like libstatic.a , other - dynamic (such as libdynamic.so ). Compiled as follows: I now use the static and dynamic libraries How to combine in order to make the final executable? Thanks! Usually something is needed:
GCC-i. / Inc -c test_subframeip_omap.c -o test_subframeip_omap.o
GCC-i. / Inc -c test_subframeip_omap.c -o test_subframeip_omap.o Gcc -l / path / to / libs -l fixed -nature-test_subframeip_omap test_subframeip_omap.o
-L library adds directory to search path and
-l , and also link, not compile.
Comments
Post a Comment