Jump to content
  • Advertisement

Archived

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

vbisme

Directory Problem

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

Let''s say I set the VC++ 7 library directory to C:\libs and inside I have C:\libs\Something\Something.lib When I do: pragma comment(lib, "Something\Something.lib") it could not find the file. Even if I go to set the linker manually to Something\Something.lib it still could not find the file. It seems the only way to link the file is to have it in the base directory, that is C:\libs\Something.lib Am I missing something? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
pragma comment(lib, "Something\Something.lib")

Try adding another \... I know this is a pragma, and treated differently than normally compiled code... But, it''s worth a try...

Tony

Share this post


Link to post
Share on other sites
Maybe "\Something\Something.lib", "Something/Something.lib" or "/Something/Something.lib". If the file exists, eventually something should work, heh

See if it works when you name it on the command line under the project options.

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!