I'm using VC2008, and currently my linker options look as follows under Properties:
Code:
/OUT:"C:\Documents and Settings\scott\My Documents\Visual Studio 2008\Projects\DynaTem\Debug\DTC.cgi"
/INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\DTC.cgi.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'"
/DEBUG /PDB:"C:\Documents and Settings\scott\My Documents\Visual Studio 2008\Projects\DynaTem\Debug\DTC.pdb"
/SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib "..\debug\dynacgi.lib"
The dynacgi.lib file is located in $(SolutionDir)\Debug, and the project trying to include it is located in $(SolutionDir)\DTC. Now I have tried adding the full path to the linker options, however, the oddest part about it is I can't seem to find a way to get this option out of my linker... and strangest yet is how the compiler seems to be trying to add the library... the actual error is:
2>LINK : fatal error LNK1104: cannot open file '../../Debug/DynaCGI.lib'
Should the above path not be matching what is in the options? I even tried the #pragma comment(lib, "..\Debug\DynaCGI.lib") and I get the exact same error. Perhaps the #pragma is properly linking, but the linker itself is still trying to use the other (however it seemed to have obtained this 'path')?
Any help would be greatly appreciated as I really don't know why this is happening... and I've just spent the last two hours scouring through the Properties of my solution & projects as well as message boards for similar problems... have yet to find anything that would be any help whatsoever.
Thanks!