943,923 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 5827
  • C++ RSS
Jul 14th, 2008
0

static lib file in visual studio 2007

Expand Post »
Can someone tell me how to add a static library file to a project in visual studio 2007.
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
guy40az is offline Offline
51 posts
since Mar 2007
Jul 14th, 2008
0

Re: static lib file in visual studio 2007

Something like this perhaps ?
CPP Syntax (Toggle Plain Text)
  1. #pragma comment(lib, "mylib.lib")
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
William Hemsworth is offline Offline
1,542 posts
since Mar 2008
Jul 14th, 2008
0

Re: static lib file in visual studio 2007

In VC 6 you add it in.

Project --> Settings --> Link Tab --> change Catetory to input then add the library to the Object/library modules list. In the left pain, change Settings For to All Configurations.

I was just wondering if it was similar in 2007
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
guy40az is offline Offline
51 posts
since Mar 2007
Jul 14th, 2008
1

Re: static lib file in visual studio 2007

If 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.
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008
Jul 15th, 2008
0

Re: static lib file in visual studio 2007

Thanks CoolGamer48 you are a genius
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
guy40az is offline Offline
51 posts
since Mar 2007
Jul 15th, 2008
0

Re: static lib file in visual studio 2007

Click to Expand / Collapse  Quote originally posted by guy40az ...
Thanks CoolGamer48 you are a genius
No problem. It's not that hard after you do it once...
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: ethernet
Next Thread in C++ Forum Timeline: DoText() Function for C++ text drawing.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC