Connecting Tech Pros Worldwide Forums | Help | Site Map

VS .NET 2003 IDE Problem: Duplicate libraries appearing on command line

Newbie
 
Join Date: Mar 2007
Posts: 1
#1: Mar 24 '07
I am having exactly the same issue as this poster back in 2005.

It's strange behaviour where libraries are being automatically appended to my "additional dependencies". In the following linker command line, I've purposely put "OgreMain.lib ARToolKitPlus.lib PGRFlyCapture.lib" in the project file. Note how this is then followed by duplicates with fully-qualified paths - these aren't in the project but VS is adding them.

Expand|Select|Wrap|Line Numbers
  1. /OUT:"..\bin/OgreAR.lib" /LIBPATH:"..\..\ogrenew\lib"
  2. /LIBPATH:"..\..\ARToolKitPlus\lib\win32" 
  3. /LIBPATH:"..\..\PGRFlyCapture\lib" /NOLOGO OgreMain.lib 
  4. ARToolKitPlus.lib PGRFlyCapture.lib 
  5. "\cygwin\home\darran\trunk\projects\0614-seedsurvivor\Application\ogrenew\lib\OgreMain.lib" 
  6. "\cygwin\home\darran\trunk\projects\0614-seedsurvivor\Application\ARToolKitPlus\lib\win32\ARToolKitPlus.lib" 
  7. "\cygwin\home\darran\trunk\projects\0614-seedsurvivor\Application\PGRFlyCapture\lib\PGRFlyCapture.lib"
  8.  
Bizarrely, if I check out to a different machine, these final three lines don't appear in the command line. I have verified that it isn't an issue with my
Tools>Options>Projects>VC++Directories nor is it fixed by setting "inherit project defaults" off in the project settings.

Any suggestions are most appreciated.

Reply