Dev-C++ Help

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
Apocalypse TH6
Posts: 16
Joined: Sat Jan 27, 2007 10:24 pm
Location: San Mateo, CA

Dev-C++ Help

Post by Apocalypse TH6 »

Hi! I'm using Dev-C++. Everytime I try to compile, I have an error.

This is the error:

Code: Select all

[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dliEEjbbbPNS_14IEventReceiverEPKc'

Code: Select all

Id returned 1 exit status
This was when I tried to compile the "main" file in \irrlicht-1.2\examples\01.HelloWorld. What do I do?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Use the correct lib (there are more than 1) !!!
Use the one in bin\Win32-gcc
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Apocalypse TH6
Posts: 16
Joined: Sat Jan 27, 2007 10:24 pm
Location: San Mateo, CA

Post by Apocalypse TH6 »

I tryed lib\Win32-gcc and bin\Win32 (???), and it didn't work. I read previous topics about this problem and they don't seem to work. What do I do about the pragma comment?
Apocalypse TH6
Posts: 16
Joined: Sat Jan 27, 2007 10:24 pm
Location: San Mateo, CA

Post by Apocalypse TH6 »

Error Fix: I meant bin\Win32-gcc, and I tried it for both binaries and libraries.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

The pragmas are for MSVC++, you don't need them for Dev (MinGW/GCC) !!!
You have to setup your compiler and link against the lib and includes...

Well, I suggest you to change to Code::Blocks !!!
It's more comfortable and easier to setup as DevCpp and supports many compilers (MinGW/GCC included) !!!

!!! C::B Nightly Builds really rocks !!!

Links can be found on my web page or by Google... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
netrix
Posts: 3
Joined: Mon Jan 29, 2007 1:22 pm

Post by netrix »

You can put libs using my tip:

1. Make project (or Open)
2. Right click on project name (on left side)
3. Project options
4. Parameters
5. Add library
6. Find lib *.a or *.lib and click OK.

I am using Dev C++ (not wx DevC++) and it works.
Apocalypse TH6
Posts: 16
Joined: Sat Jan 27, 2007 10:24 pm
Location: San Mateo, CA

Post by Apocalypse TH6 »

It works, thanks netrix and Acki!
Allfreeware
Posts: 4
Joined: Sat Mar 03, 2007 6:03 pm

Post by Allfreeware »

Hi all,i'm new.
Sorry,but i don't think how can i use irrlicht with devcpp.
-I've open new project;
-Add new file;
-Tools-->compilers options-->libraries-->and add "C:\Dev-Cpp\irrlicht-1.2\include;
And after?
What i've to do now?
Thanks
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

Hi, to compile Irrlicht programs, you need to include the following libraries:

libIrrlicht
libGL
libGLU

there is a tutorial on this at http://irrlicht.sourceforge.net/tut_devcpp.html .

hope i was helpful, i didnt have much time to read the thread :oops:

-dudMan
Allfreeware
Posts: 4
Joined: Sat Mar 03, 2007 6:03 pm

Post by Allfreeware »

I've read the tutorial...
But in my irrilicht/lib/... i have'nt a folder named "DevCpp"...
What i've to do? :cry:
Thanks for the replay dudMaN :D
Allfreeware
Posts: 4
Joined: Sat Mar 03, 2007 6:03 pm

Post by Allfreeware »

Now work!!!I've add the directory on tools-->compiler options-->directorys and ecc..
Thanks at all.
Bye!
Post Reply