Dev-C++

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.
Fallenblood
Posts: 9
Joined: Wed May 31, 2006 8:55 am
Location: Bulgaria
Contact:

Dev-C++

Post by Fallenblood »

This is my first post here, so hello to all.

c:\adam's\dev\extinguished\main.o(.text+0x136):main.cpp: undefined reference to `import stub for irr::createDevice(irr::video::E_DRIVER_TYPE, irr::core::dimension2d<int> const &, unsigned int, bool, bool, bool, irr::IEventReceiver *, char const *)'

That's the error I get when I try to compile Irrlicht's Hello World. I'm using Dev-C++ 4 built on 10.9.2000 with mingw 2.95.2-1.

Any idea what might be causing this?
Perceval
Posts: 158
Joined: Tue May 30, 2006 2:42 pm

Post by Perceval »

Are you sure to have linked the good lib ?
Fallenblood
Posts: 9
Joined: Wed May 31, 2006 8:55 am
Location: Bulgaria
Contact:

Post by Fallenblood »

Huh? :?:
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You're probably using an Irrlicht-0.14 .lib file. Reinstall the .lib and .dll files together with the includes such that all versions are compatible. And recompile everything from scratch.
(Was a different error, did not read the error message correctly)
Last edited by hybrid on Wed May 31, 2006 9:41 am, edited 1 time in total.
Perceval
Posts: 158
Joined: Tue May 30, 2006 2:42 pm

Post by Perceval »

You need to link the irrlicht librairy which is in the /lib/win32 folder.
Fallenblood
Posts: 9
Joined: Wed May 31, 2006 8:55 am
Location: Bulgaria
Contact:

Post by Fallenblood »

I have three Win32 folders in my lib folders - Win32-gcc, Win32-VisualStudio, and Win64-VisualStudio... In Win32-gcc there's an .a file and a .def file...
Perceval
Posts: 158
Joined: Tue May 30, 2006 2:42 pm

Post by Perceval »

you have to use the irrlicht.a in the win32-gcc (i think)
Fallenblood
Posts: 9
Joined: Wed May 31, 2006 8:55 am
Location: Bulgaria
Contact:

Post by Fallenblood »

I'm using it, but is mingw compatible with gcc?

Here's my project settings:

Further object files or linker options: C:\Adam's\Dev\irrlicht-1.0\lib\Win32-gcc\libIrrlicht.a

Extra compiler options: (none)

Extra include directories: C:\Adam's\Dev\irrlicht-1.0\include
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have to use Dev-c++ 5beta (aka. 4.9.9.2). Older versions are known to refuse work.
Perceval
Posts: 158
Joined: Tue May 30, 2006 2:42 pm

Post by Perceval »

I use the same settings, except that i type -lirrlicht in the linker options.
Fallenblood
Posts: 9
Joined: Wed May 31, 2006 8:55 am
Location: Bulgaria
Contact:

Post by Fallenblood »

Perceval wrote:I use the same settings, except that i type -lirrlicht in the linker options.
C:\DEV-C__\BIN\ld.exe: cannot open -lirrlicht: No such file or directory

I've tried it in both lnker options ad compiler options...

Wait, are you sure Dev-C++ 4 won't work? poop.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

At least that's what was written here:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=10238
strale
Posts: 119
Joined: Wed Nov 23, 2005 1:58 pm
Location: Lambrugo Italy
Contact:

Post by strale »

Hi
i remeber a thread about

Post subject: problem with compile&run

and the problem was solved uprgrading to
dev-c++ 4.9.9.2

but errors seemed to be different from your.

have you put the Irrlicht.dll into your project folder ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

strale wrote:have you put the Irrlicht.dll into your project folder ?
It's a linker error, so no need for the dll, yet.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Fallenblood wrote:I'm using it, but is mingw compatible with gcc?
MinGW is GCC (mingw32-gcc.exe)... :roll:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply