code::blocks DIRECTX and OPENGL

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.
Post Reply
PlayG7SeveN
Posts: 22
Joined: Wed Apr 18, 2007 4:17 pm

code::blocks DIRECTX and OPENGL

Post by PlayG7SeveN »

I AM USEING Code::blocks and devcpp.. DIRECTX IS GIVING THE MISTAKE...OPENGL ISN'T WORKING...IS THERE THIS SOLUTION ?
OR
FROM WHERE CAN I FIND THE OPENGL and DIRECTX LIBRARY?
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

DirectgX is not implemented in to Irrlicht.dll for Mingw compiler which is used in DevC++ and CB. OpenGl however is so you must have make some mistake while compiling. Did you set up your project file properly? Are you using right dll? Is dll in the PATH?

There is tutorial at Irrlicht main page for DevC++ check it out.

Also check out FAQs, Tutorials, Howtos, and external tool lists forum, there are few threads about howe to compile DirectX in to dll. There is even compiled one there. Just download and use it.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The error might be due to your stuck Caps-lock (since C++ is case sensitive) :lol:
Actually, the Win32-gcc library does not contain DirectX support. Either use the newly compiled dll from the FAQ forum or compile the library yourself with proper defines and directX linking.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

DirectX is not implemented in to Irrlicht.dll for Mingw compiler which is used in DevC++ and CB.
Why don't implement it?
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

You can use C::B with the Microsoft Visual C++ 2003 Toolkit and even if you install Visual C++ Express 2005, you can use that compiler with C::B as well.

DevC++ ONLY works on Windows with MinGW compiler, which only has support for DX through an illegal version of DX DLLs.
Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

For DirectX9 you can also generate mingw compatible .lib files via reimp. This does, however, not work for unknown reasons for the DirectX8 libs. I'm not sure if garritg still supports both versions (he might even have solved this dx8 problem somehow...). Anyway, using mingw with directX needs some efforts :wink:
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

Spintz wrote: DevC++ ONLY works on Windows with MinGW compiler, which only has support for DX through an illegal version of DX DLLs.
thats simply not true! u only have to donwload the dxSDK from microsoft and i don't think that that is illegal
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Sudi wrote:
Spintz wrote: DevC++ ONLY works on Windows with MinGW compiler, which only has support for DX through an illegal version of DX DLLs.
thats simply not true! u only have to donwload the dxSDK from microsoft and i don't think that that is illegal
The DX SDK DLLs are not compatible with MinGW compiled code. The license agreement for the DX SDK forbids modifying the DLL and then re-releasing it.

So you could redo the DLLs yourself, with every SDK release, and then use them yourself, but legally, you cannot re-distribute those DLLs.
Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You only create .lib files via reimp. This simply greps the exported names from the dll and does some name demangling. Since some compilers do this automatically for you (I think garritg also told me something about this with mingw...) there is no legal problem with it. You use the original dx dlls which you thus do not have to distribute.
Post Reply