gcc - C - Using shared library -
i have made makefile creating shared library of 2 c code files (i used gcc). makefile creating runnable main c file. need know how tell main c file use shared library - because need use functions contained in code files in shared library. help.
#include
header file containing declaration of function(s) want use in main file.link shared library using
-l/path/to/libraries abc.c -l<yourlib>
. [assuming libary namelib<yourlib>.so
]
note: can find reads here.
Comments
Post a Comment