News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Linker Error...Oopsie!

Started by squimmy, July 03, 2006, 07:02:10 PM

Previous topic - Next topic

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 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Michael

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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

nfz


mandrav

Quote from: nfz on July 04, 2006, 04:22:55 AM
you might want to read this too.

Actually, this is exactly what he should read :).
Be patient!
This bug will be fixed soon...