Irrlicht->Dev-C++->DX8 problem

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.
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Irrlicht->Dev-C++->DX8 problem

Post by DarkWhoppy »

I get this error when compiling with DX8.

cc1plus.exe C:\Dev-Cpp\Engine\Irrlicht Engine\cc1plus.exe
[Warning] -fvtable-thunks is no longer supported

:?: :?:
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

Irrlicht in DevC++ still handles only OGL mode.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

But since version 0.4.1, the code shoult automaticly detect if you are trying to compile DirectX with g++, and disables it unasked. But I don't know if cc1plus.exe is a gcc compiler.
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Its what I came with Dev-C++ when I installed. :? I'll just use OpenGL until I find away around that...
Guest

Post by Guest »

I can compile demos with Dev-C++, but I have a crash when running demos with video::DIRECTX8 instead of video::OPENGL or video::SOFTWARE.

I would like to know if version 0.4.1 is smart enough to use video::DIREXT8 with Dev-C++ ?
Guest

Post by Guest »

1) cc1plus is a part of gcc
2) when compiling, I used version 0.4 and I failed to use DX8 with Dev-C++. Does version 0.4.1 solve this problem ?
3) If I remember well, -fvtable-thunks must be used for accessing COM objects like DX8 interfaces.
Guest

Post by Guest »

ok, -fvtable-thunks seems to be deprecated in gcc 3.x and you must use the latest Dev-C++ with gcc 3.x.
hlide

success with compiling Irrlicht with Dev-C++ and DirectX8

Post by hlide »

Hi,

Using version 0.4.1, you must launch Dev-C++ and check if you have downloaded the Directx package for Dev-C++. Just open Irrlicht.dev and make some modifications or additions :

1) in IrrCompileConfig.h, modify lines 23-26 as following :

#if defined(_WIN32)
// && !defined(__GNUC__)
#define _IRR_COMPILE_WITH_DIRECTX_8_
#endif

2) "Tab Project > Project options (Alt-P) > Tab Paremeters > Link editor" : just add "-ld3d8 -ld3dx8d"


Also, I advise you to add optimizations flags too, if you want to be able to have 200fps instead of 70 fps ( software/opengl )
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

I get a few... hundred errors when I compile for some reason. I did everything right =/ . Maybe there should be a download some where with it already compiled that way for DX. :roll:
koko775
Posts: 5
Joined: Mon Nov 03, 2003 2:48 am

Post by koko775 »

it might be that it's having trouble finding or isn't playing nice with the directX header files.
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

15 C:\DEV-CPP\include\d3dx8mesh.h
In file included from C:/DEV-CPP/include/d3dx8mesh.h

240 C:\DEV-CPP\include\dxfile.h
stray '\32' in program

2 C:\DEV-CPP\include\dxfile.h:240
[Warning] no newline at end of file
There're my errors. :?
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

I removed that little square which was a "stray '\32' " but... no DLL ?? I'm suppose to get a DLL when done compiling right?:?
Burnt

Yes

Post by Burnt »

I just followed his exact instructions and produced a .dll just fine. extract a brand new source.zip and try again.
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Still not workin...(no DLL after done compiling) I tried twice and i'm using Dev-C++ v4.9.8.4

Could you upload one to a server for me to download? That'll be greatly appreciated.
voltare

dev-c++ and directx

Post by voltare »

according to a dev-c++ forum i'm on, dev-c++ and directx don't get along well witth each other......
Post Reply