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.
Help with setting up DevCPP with Irrlicht 12...
Help with setting up DevCPP with Irrlicht 12...
Last edited by nixnerd on Tue Sep 20, 2005 12:15 am, edited 1 time in total.
Remove those. You don't need anything in the source directory unless you are trying to recompile the dll.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
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
Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Thanks for the quick reply Mike...
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?
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?
Irrlicht 12 +DevCPP +HelloWorld = compile errors
Yes, I think have followed your tutorial. As I say, I'm a complete newbie, so may be doing something silly.MikeR wrote:Have you followed the tut in my sig? It's how I compile it.
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
Not quite sure what I've done, but it's working now...
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.
BTW Whatever happened to DevCPP support in Irrlicht, I seem to remember in previous releases it had some kind of DevCCP configuration settings.
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 ....)
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
Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Thanks Mike
Thanks MikeMikeR 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 ....)