User forums > General (but related to Code::Blocks)
Linker Error...Oopsie!
(1/1)
squimmy:
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.
thomas:
--- Quote from: squimmy on July 03, 2006, 07:02:10 pm ---A simple hello world app will compile fine, but on linking it will return:
ld.exe cannot find -l0gremain_d
--- End quote ---
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.
Michael:
--- Quote from: squimmy on July 03, 2006, 07:02:10 pm ---This is Code::Blocks version 1.0 RC2.
--- End quote ---
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
nfz:
you might want to read this too.
mandrav:
--- Quote from: nfz on July 04, 2006, 04:22:55 am ---you might want to read this too.
--- End quote ---
Actually, this is exactly what he should read :).
Navigation
[0] Message Index
Go to full version