Can someone tell me how to add a static library file to a project in visual studio 2007.
guy40az
0
Junior Poster in Training
Recommended Answers
Jump to PostSomething like this perhaps ?
#pragma comment(lib, "mylib.lib")
Jump to PostIf you'd like to link to a lib through the compiler's interface rather than using #pragma, right-click on your project's name in the panel to the left, go down to properties, expand linker, go to input, and put the libraries names in the additional dependencies field, separated by spaces.
All 5 Replies
William Hemsworth
1,339
Posting Virtuoso
guy40az
0
Junior Poster in Training
CoolGamer48
65
Posting Pro in Training
guy40az
commented:
thanks again !!!
+2
guy40az
0
Junior Poster in Training
CoolGamer48
65
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.