Menu

Usage of Static Library?

2003-01-04
2012-09-26
  • Nobody/Anonymous

    How can I use a Static Library in my projects?

     
    • Nobody/Anonymous

      Sorry for the double posting, but my post wasnt showing when i pressed update.. sorry!

       
    • upcase

      upcase - 2003-01-05

      Hi!
      Normally you just have to tell the compiler/linker that there's a lib you want to link. Do this by adding the correct -l switch to your compiler options. For example if the lib is named libmysql.a add -lmysql as a command switch. This way the linker should find the lib and should link against it. If you put the lib in a dir that's not in you Libpath either add the dir to your Libpath or add the dir using the -L switch in you compiler options. For example -L"c:\somwhere\thedir"...
      Hope this helps!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.