Could not manage Compiling first app with MinGW Studio...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
NETExtremeCoder
Posts: 3
Joined: Mon Aug 21, 2006 1:53 am

Could not manage Compiling first app with MinGW Studio...

Post by NETExtremeCoder »

Hi,

whenver i try to compile my first C++ app with MinGW Developer Studio
i get this error:

--------------------Configuration: ILCppTest - Release--------------------
Linking...
G:\projects\ILCppTest\Release\main.o:main.cpp:(.text+0x195): undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'
collect2: ld returned 1 exit status

ILCppTest.exe - 1 error(s), 0 warning(s)


Seems to be something working wrong with the linker, but what? Headers
could be found, linker path to libs is given, but it still complains.

Irrlicht is 1.1 (latest download)
MinGW is also up-to-date...


Thanks in advance...

Regards...
kornerr
Posts: 245
Joined: Thu Jul 06, 2006 9:57 am
Location: Russia, Siberia, Kemerovo
Contact:

Post by kornerr »

I was getting similar error. I think the problem is in libIrrlicht.a which can't be compiled under MinGW only, because it contains some Code::Blocks Studio dependencies.
So you have to use Code::Blocks Studio (with MinGW's GCC) to compile and link it successfully.
It works for me under Windows.
Open Source all the way, baby ;)
OSRPG
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The linker problem is usually due to a wrong library. Don't use the Win32-Visual but Win32-gcc library. And be sure that you don't use wrong headers (e.g. those from Irrlicht 1.0).
NETExtremeCoder
Posts: 3
Joined: Mon Aug 21, 2006 1:53 am

Post by NETExtremeCoder »

Hi,

i solved it! The Compiler expected the full path to the library and
not only the library-files name. All my settings inside the IDE where
right: Include Directories, Lib Directories, Bin Directories, Tools, etc,
but dont ask me why the linker needs the full path to the library. But
this is the only way how i worked on my system!


Regards...
Post Reply