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.

  1. #include header file containing declaration of function(s) want use in main file.

  2. link shared library using -l/path/to/libraries abc.c -l<yourlib>. [assuming libary name lib<yourlib>.so]

note: can find reads here.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -