using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib, "Irrlicht.lib")
int main()
{
IrrlichtDevice *device =
createDevice(EDT_SOFTWARE, dimension2d<s32>(640, 480), 16,
false, false, false, 0); //here is where my program goes down.
return 0;
}
Any idea why this may be happening. My video drivers are pretty standard if not advanced.
Thanks, I've added the code below, and what happens is, command prompt type programm window briefly opens, and then abruptly shuts down. I imagiane that a graphic window is supposed to appear, but it does not. Here is the code below:
Do you have irrlicht.dll in the same directory as your built executable? Does your compiler say something like, "warning: ignoring #pragma comment"? I compiled your code exactly how it was, and it worked fine.
The irrlicht.h is the SDK is in include/irrlicht.h, not foo/irrlicht/irrlicht.h. What have you done to your SDK / build environment to require including it from irrlicht/irrlicht.h? I want to be sure that the dll/libs that you're linking with match the includes that you're using, as this is a very common cause of problems.