Help with setting up DevCPP with Irrlicht 12...

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
nixnerd
Posts: 14
Joined: Mon Jan 31, 2005 2:00 am
Location: United Kingdom

Help with setting up DevCPP with Irrlicht 12...

Post by nixnerd »

Hi,

having followed serveral links an tutorials in setting up DevCPP to use with Irrlicht, I'm trying to compile HelloUniverse.cpp, with very little success.

I've tried following this tutorial:
http://irrlicht.sourceforge.net/tut_devcpp.html
and this one
http://www.3dcentral.net/tutorial/irr-devcpp/

The error I'm getting is:
[Linker error] undefined reference to `WinMain@16'

I'm using version 4.9.9.2 of DevCPP (thats the one with mingw + gcc 3.4.2)

I think I've set up the project correctly by providing links for the complier to the correct library files and include directories, but as I'm a newbie at this I could well be missing something fundamental.

The library directory is set for:

C:\irrlicht_12\lib\Win32-gcc

Include directories are set for:
C:\irrlicht_12\include
C:\irrlicht_12\source\Irrlicht\include
C:\irrlicht_12\source\Irrlicht\jpeglib
C:\irrlicht_12\source\Irrlicht\libpng
C:\irrlicht_12\source\Irrlicht\zlib\win32

The linker is set for:

../../irrlicht_12/lib/Win32-gcc/libIrrlicht.a

Any help would be appreciated.
Last edited by nixnerd on Tue Sep 20, 2005 12:15 am, edited 1 time in total.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

C:\irrlicht_12\source\Irrlicht\include
C:\irrlicht_12\source\Irrlicht\jpeglib
C:\irrlicht_12\source\Irrlicht\libpng
C:\irrlicht_12\source\Irrlicht\zlib\win32
Remove those. You don't need anything in the source directory unless you are trying to recompile the dll.
Everything else looks correct.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
nixnerd
Posts: 14
Joined: Mon Jan 31, 2005 2:00 am
Location: United Kingdom

Thanks for the quick reply Mike...

Post by nixnerd »

Thanks for the quick reply Mike, I did try without including:

C:\irrlicht_12\source\Irrlicht\include
C:\irrlicht_12\source\Irrlicht\jpeglib
C:\irrlicht_12\source\Irrlicht\libpng
C:\irrlicht_12\source\Irrlicht\zlib\win32

and got the same result.

Glad it wasn't so difficult to get it compiling under Linux :)

Maybe it's something do to with the version of DevCPP?
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Have you followed the tut in my sig? It's how I compile it.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
nixnerd
Posts: 14
Joined: Mon Jan 31, 2005 2:00 am
Location: United Kingdom

Irrlicht 12 +DevCPP +HelloWorld = compile errors

Post by nixnerd »

MikeR wrote:Have you followed the tut in my sig? It's how I compile it.
Yes, I think have followed your tutorial. As I say, I'm a complete newbie, so may be doing something silly.

I get these compiler errors when trying to compile the 'Hello World' example:

Executing make...
make.exe -f "C:\Dev-Cpp\irrlicht_demo\Makefile.win" all
g++.exe irrlicht_demo.o -o "irrlicht_demo.exe" -L"C:/Dev-Cpp/lib" -L"C:/irrlicht_12/lib/Win32-gcc" -mwindows ../../irrlicht_12/lib/Win32-gcc/libIrrlicht.a

C:/Dev-Cpp/lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
nixnerd
Posts: 14
Joined: Mon Jan 31, 2005 2:00 am
Location: United Kingdom

Not quite sure what I've done, but it's working now...

Post by nixnerd »

Not quite sure what I've done, but it's working now.

BTW Whatever happened to DevCPP support in Irrlicht, I seem to remember in previous releases it had some kind of DevCCP configuration settings.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

There was a pluggin made for dev-cpp a while back, but it is way out of date.
Glad you got it working. Remember, unless you recompile irrlicht.dll, you won't be able to use directX. (and recompiling the dll is a pain in the ....)
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
nixnerd
Posts: 14
Joined: Mon Jan 31, 2005 2:00 am
Location: United Kingdom

Thanks Mike

Post by nixnerd »

MikeR wrote:There was a pluggin made for dev-cpp a while back, but it is way out of date.
Glad you got it working. Remember, unless you recompile irrlicht.dll, you won't be able to use directX. (and recompiling the dll is a pain in the ....)
Thanks Mike
Post Reply