Missing OgreMain.dll in Debug demos

Problems building or running the engine, queries about how to use features etc.
putujici_jack
Gnoblar
Posts: 6
Joined: Tue Jan 18, 2005 9:04 pm

Missing OgreMain.dll in Debug demos

Post by putujici_jack »

Hi,
I've just compiled Ogre using VC6.0 and have got a problem with running demos in Samples/Common/Debug folder. When I try to run them, each throws exception with message abou missing OgreMain.dll. The dll file for debug, which is correctly in Debug folder, has name OgreMain_d.dll, but those demos ask just for OgreMain.dll!
I can't also compile any of those demos or my own test app due to the same exception.
All Release demoes runs perfectly, without any problem.
Please, help what am I doing wrong and what should I do tu run demos and my own programs in debug mode?

Thanks,
PJ
AssiDragon
Greenskin
Posts: 145
Joined: Wed Apr 28, 2004 12:10 pm
Location: Hungary

Post by AssiDragon »

I'd check the demos' and your app's project settings - they might include ogremain.lib instead of ogremain_d.lib in debug mode, and that would explain this.
Hope is the first step on the road to disappointment.
putujici_jack
Gnoblar
Posts: 6
Joined: Tue Jan 18, 2005 9:04 pm

Post by putujici_jack »

I've tried for example Demo_water - all links to libs are set properly (OgreMain_d.dll) but in runtime, the missing dll is still OfreMain.dll!
What could be wrong?
AssiDragon
Greenskin
Posts: 145
Joined: Wed Apr 28, 2004 12:10 pm
Location: Hungary

Post by AssiDragon »

Hmm. As a short time solution, try renaming the ogremain_d.dll to ogremain.dll and see if it runs lol.

I think I had this problem under VC6 for a while too, but it just... went away. :?
Hope is the first step on the road to disappointment.