THIS CODE WORK PERFECT :
// HelloUniverse.cpp
// Include the Irrlicht header
#include "irrlicht.h"
// Irrlicht Namespaces
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int main()
{
IrrlichtDevice *irrDevice = createDevice(EDT_SOFTWARE,
dimension2d<s32>(512, 384),
16,
false,
false,
0);
irrDevice->setWindowCaption(L"Dev-C++ and the Irrlicht Engine!");
IVideoDriver* irrDriver = irrDevice->getVideoDriver();
ISceneManager* irrSceneMgr = irrDevice->getSceneManager();
IGUIEnvironment* irrGUIEnv = irrDevice->getGUIEnvironment();
irrGUIEnv->addStaticText( L"Hello World! This is the Irrlicht software engine!",
rect<int>(10,10,200,30), true, true, 0, -1);
while(irrDevice->run())
{
irrDriver->beginScene(true, true, SColor(0,192,192,192));
irrSceneMgr->drawAll();
irrGUIEnv->drawAll();
irrDriver->endScene();
}
irrDevice->drop();
return(0);
}
BUT, when i try this :
IrrlichtDevice *irrDevice = createDevice(EDT_DIRECTX8,
dimension2d<s32>(512, 384),
16,
false,
false,
0);
the prog don't lauch (with dx8 or dx9)
prog don't work with direct x
compiler errors :
Irrlicht.dll
CZipReader.o(.text+0x1052):CZipReader.cpp: undefined reference to `inflateInit2_'
CZipReader.o(.text+0x10e6):CZipReader.cpp: undefined reference to `inflate'
CZipReader.o(.text+0x10f0):CZipReader.cpp: undefined reference to `inflateEnd'
CZipReader.o(.text+0x10fb):CZipReader.cpp: undefined reference to `inflateEnd'
CImageLoaderJPG.o(.text+0x23f):CImageLoaderJPG.cpp: undefined reference to `jpeg_std_error'
CImageLoaderJPG.o(.text+0x263):CImageLoaderJPG.cpp: undefined reference to `jpeg_CreateDecompress'
CImageLoaderJPG.o(.text+0x2b1):CImageLoaderJPG.cpp: undefined reference to `jpeg_resync_to_restart'
CImageLoaderJPG.o(.text+0x2d9):CImageLoaderJPG.cpp: undefined reference to `jpeg_read_header'
CImageLoaderJPG.o(.text+0x2e1):CImageLoaderJPG.cpp: undefined reference to `jpeg_start_decompress'
CImageLoaderJPG.o(.text+0x3d4):CImageLoaderJPG.cpp: undefined reference to `jpeg_read_scanlines'
CImageLoaderJPG.o(.text+0x425):CImageLoaderJPG.cpp: undefined reference to `jpeg_finish_decompress'
CImageLoaderJPG.o(.text+0x432):CImageLoaderJPG.cpp: undefined reference to `jpeg_destroy_decompress'
dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap.exe: c++ exited with status 1
make.exe: *** [Irrlicht.dll] Error 1
Execution terminated
Irrlicht.dll
CZipReader.o(.text+0x1052):CZipReader.cpp: undefined reference to `inflateInit2_'
CZipReader.o(.text+0x10e6):CZipReader.cpp: undefined reference to `inflate'
CZipReader.o(.text+0x10f0):CZipReader.cpp: undefined reference to `inflateEnd'
CZipReader.o(.text+0x10fb):CZipReader.cpp: undefined reference to `inflateEnd'
CImageLoaderJPG.o(.text+0x23f):CImageLoaderJPG.cpp: undefined reference to `jpeg_std_error'
CImageLoaderJPG.o(.text+0x263):CImageLoaderJPG.cpp: undefined reference to `jpeg_CreateDecompress'
CImageLoaderJPG.o(.text+0x2b1):CImageLoaderJPG.cpp: undefined reference to `jpeg_resync_to_restart'
CImageLoaderJPG.o(.text+0x2d9):CImageLoaderJPG.cpp: undefined reference to `jpeg_read_header'
CImageLoaderJPG.o(.text+0x2e1):CImageLoaderJPG.cpp: undefined reference to `jpeg_start_decompress'
CImageLoaderJPG.o(.text+0x3d4):CImageLoaderJPG.cpp: undefined reference to `jpeg_read_scanlines'
CImageLoaderJPG.o(.text+0x425):CImageLoaderJPG.cpp: undefined reference to `jpeg_finish_decompress'
CImageLoaderJPG.o(.text+0x432):CImageLoaderJPG.cpp: undefined reference to `jpeg_destroy_decompress'
dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap.exe: c++ exited with status 1
make.exe: *** [Irrlicht.dll] Error 1
Execution terminated