[vlc-devel] Steps for linking a static library

Peter Tap ptrtap at yahoo.com
Wed Nov 9 19:11:29 CET 2011


Folks,

So far, I have been specifying my source code file name directly in Modules.am. Now, I would like to build a separate library and link it within vlc's build process. I would appreciate your help in understanding how to do this.

Step 1: Compile and create the library:

gcc -Wall -c ctest1.cpp ctest2.cpp
ar -cvq libctest.a ctest1.o ctest2.o 


Are there any gcc flags that are required by VLC? 

Step 2: Link with the library file

I guess somewhere I need to specify "-lctest." Where is this supposed to go?

Thank you in advance for your help.

Regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111109/eb573c7a/attachment.html>


More information about the vlc-devel mailing list