Okay, I was messing about trying to get ogre working in code blocks, long story short I've given up. It doesn't really matter that ogre doesn't work but some step I took has stopped me compiling anything at all now.
A simple hello world app will compile fine, but on linking it will return:
ld.exe cannot find -l0gremain_d
I can't remember what step I took that has caused this error... so how can I fix it?
This is Code::Blocks version 1.0 RC2.
Help is appreciated,
Thanks.
Quote from: squimmy on July 03, 2006, 07:02:10 PMA simple hello world app will compile fine, but on linking it will return:
ld.exe cannot find -l0gremain_d
Very likely, you have done both of the following:
1. added the Ogremain_d library to
global compiler options (so even HelloWorld links against it)
2. set up the library path incorrectly, or not set it up at all, so the linker cannot find the Ogre libs
Solution:
1. Remove Ogremain_d from the global compiler settings, instead add it to the
projects that need it.
2. Add the path to where you keep your Ogre libraries to the projects that use Ogre.
Quote from: squimmy on July 03, 2006, 07:02:10 PM
This is Code::Blocks version 1.0 RC2.
Hello,
I would also advice you to get the latest nightly build instead of using RC2. Anyway, RC3 should not be far away :).
Best wishes,
Michael
you might want to read this (http://www.ogre3d.org/wiki/index.php/CodeBlocks_MingW_STLPort) too.
Quote from: nfz on July 04, 2006, 04:22:55 AM
you might want to read this (http://www.ogre3d.org/wiki/index.php/CodeBlocks_MingW_STLPort) too.
Actually, this is
exactly what he should read :).