Application searches for XX.dll instead of the debug version XX-d.dll

Mar 19, 2012 at 2:07pm
Hi,

I have been trying to build an app relying on OSG 3.0, OSGart 2rc3 and VS 2008.
I am not an expert on MS VS 2008 so maybe I have missed something while configuring.

I have built everything in both debug configuration and release.

the problem is that when starting the debugger I get a message of "ot12-OpenThreads.dll is missing..." and I have only included debug versions as dependencies.

The message should be about "ot12-OpenThreadsd.dll" which is my debug dll

I have included the following in my project's "linker->additional dependencies"

kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
"C:\osgART_debug.lib"
"C:\lib\osgd.lib"
"C:\lib\osgDBd.lib"
"C:\lib\osgGAd.lib"
"C:\lib\osgViewerd.lib"
"C:\lib\osgWidgetd.lib"
glu32.lib
opengl32.lib

The osgART_debug.lib is produced by the osgART project,
which has the following "additional dependencies" in project options

kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
"C:\lib\OpenThreadsd.lib"
"C:\lib\osgd.lib"
"C:\lib\osgDBd.lib"
glu32.lib
opengl32.lib

I can't figure out why my project asks for "ot12-OpenThreads.dll"
I also checked the dependenies of the projects that produce these libraries
osgd.lib
osgDBd.lib
osgGAd.lib
osgViewerd.lib
osgWidgetd.lib

none of them depends on OpenThreads.lib
Any comment would be really appreciated!
Thanks!

Topic archived. No new replies allowed.