I'm getting a load of compile errors when trying to compile Irrlicht with MinGW Developer Studio 2.05 for the first time. I've trimmed my code down to bare bones...
#include <irrlicht.h>
int main()
{
return 0;
}
...and with just that, I get 7 errors and 59 warnings. It looks like its all about the #include<irrlicht.h> line. I won't include the whole list of entries, but here's an example:
In file included from ..\..\..\irrlicht-1.0\include\irrlicht.h:36,
from main.cpp:1:
..\..\..\irrlicht-1.0\include\SLight.h: In constructor `irr::video::SLight::SLight()':
..\..\..\irrlicht-1.0\include\SLight.h:57: warning: `irr::video::SLight::Type' will be initialized after
..\..\..\irrlicht-1.0\include\SLight.h:37: warning: `irr::video::SColorf irr::video::SLight::AmbientColor'
..\..\..\irrlicht-1.0\include\SLight.h:34: warning: when initialized here
I'm not sure what's going on here. Has anyone gotten the same problems?
MinGW woes
Ok, this gets me down to one error message Now when I try the line:
IrrlichtDevice *device = createDevice(driverType, core::dimension2d<s32>(640, 480));
I get the error:
C:\cpp\test\main.cpp:36: undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'
I'm sure this is just IDE setup, and I'm unfamiliar with MinGW. Any ideas?
IrrlichtDevice *device = createDevice(driverType, core::dimension2d<s32>(640, 480));
I get the error:
C:\cpp\test\main.cpp:36: undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'
I'm sure this is just IDE setup, and I'm unfamiliar with MinGW. Any ideas?
Nope, I have the
#pragma comment(lib, "Irrlicht.lib")
line coded in. The above code is a result of gradual trimming down until practically nothing is left. Before I removed the pragma comment, I already had the error.
At this point, it compiles fine until I try the createDevice command.
Anyway, its enfuriating because I have done all this with visual studio, but don't have access to it anymore.
#pragma comment(lib, "Irrlicht.lib")
line coded in. The above code is a result of gradual trimming down until practically nothing is left. Before I removed the pragma comment, I already had the error.
At this point, it compiles fine until I try the createDevice command.
Anyway, its enfuriating because I have done all this with visual studio, but don't have access to it anymore.