Archived

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

Directory Problem

This topic is 5025 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
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
doesn''t work, even if "Something\\something.lib" doesn''t work. Hmmm...

Share this post


Link to post
Share on other sites