Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

Directory Problem

Started by vbisme Apr 14, 2004 at 10:49 AM 3 replies 250+ views
Original Post
vbisme
vbisme
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.
iaretony
iaretony
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
Zipster
Zipster
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.
vbisme
vbisme
doesn''t work, even if "Something\\something.lib" doesn''t work. Hmmm...
Mulligan
Mulligan
maybe ".\Something\Something.lib"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.