Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Infuscare

Linking in Visual studio .NET

This topic is 5429 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

how the hell do you add libraries in visual studio.NET Ps. the reason im posting in the opengl forum is because i was trying to link the GL libraries...

Share this post


Link to post
Share on other sites
Advertisement
3 possibilities

a) Add the library to the list of source files
b) In project options/linker, there is a field for "additional libraries"
c) #pragma comment(lib,"library.lib")

Assuming your library path is correctly set.


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

Share this post


Link to post
Share on other sites
quote:
Original post by Arild Fines
quote:
Original post by Fruny
a) Add the library to the list of source files


Hm, didn''t know about this one.



It works. You can also do this with .obj files.

Share this post


Link to post
Share on other sites
thanks a lot,
(i knew there was a way to do it with #pragma, but I didnt remember how cuz i never used to do it that way)

_________________________________________
"Why, why why does everyone ask ''''why'''' when ''''how'''' is so much more fun"
-Spawn 1997

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!