Archived

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

Linking in Visual studio .NET

This topic is 5148 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

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