Directory Problem

Started by
3 comments, last by vbisme 20 years ago
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.
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
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.
doesn''t work, even if "Something\\something.lib" doesn''t work. Hmmm...
maybe ".\Something\Something.lib"

This topic is closed to new replies.

Advertisement