device =(IrrlichtDevice *)createDevice( returns 0 ?

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
generalchaos
Posts: 3
Joined: Tue Mar 09, 2010 12:33 pm

device =(IrrlichtDevice *)createDevice( returns 0 ?

Post by generalchaos »

... device =(IrrlichtDevice *)createDevice( video::EDT_SOFTWARE, ..
this functi0on causes error at runtime
so therefore demo applications wont run for me.
what could be the reason ?

wouldn't be there a better way of debugging this .
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

what error message do you get ???
what does the code line completely look like (and maybe lines before it) ???
what Irrlicht version do you use ???
what OS and IDE do you use ???

without enough information we can't help you, we are not mentalists !!! :lol:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
generalchaos
Posts: 3
Joined: Tue Mar 09, 2010 12:33 pm

Post by generalchaos »

Acki wrote:what error message do you get ???
what does the code line completely look like (and maybe lines before it) ???
what Irrlicht version do you use ???
what OS and IDE do you use ???

without enough information we can't help you, we are not mentalists !!! :lol:
ok. thanks.
here is the compile log :
----------------------------------
Compiler: Default compiler
Building Makefile: "C:\game_src\irricht-1.7.1\irrlicht-1.7.1\examples\01.HelloWorld\Makefile.win"
Executing make...
make.exe -f "C:\game_src\irricht-1.7.1\irrlicht-1.7.1\examples\01.HelloWorld\Makefile.win" all
make.exe: Nothing to be done for `all'.

Execution terminated
Compilation successful
----------------------------------
after that the output file goes to C:\game_src\irricht-1.7.1\irrlicht-1.7.1\bin\Win32-gcc

Directory of C:\game_src\irricht-1.7.1\irrlicht-1.7.1\bin\Win32-gcc
<DIR> .
<DIR> ..
396,764 HelloWorld.exe <--this is the wirking one comes as binary
6,781,276 Irrlicht.dll
57,171 01.HelloWorld.exe <-- this is the one compiled using source-code.

our one is 57,171 vs working one which is 396,764
so it looks like something gone wrong at linking.
and no there is no linker or compiler errors.
it crashes at runtime .
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You probably use the VisualStudio dll which is found somewhere on the search path. This will crash as described.
generalchaos
Posts: 3
Joined: Tue Mar 09, 2010 12:33 pm

Post by generalchaos »

hybrid wrote:You probably use the VisualStudio dll which is found somewhere on the search path. This will crash as described.
ok irrlich 1.0 works fine . when i replaced the dll from 1.7 on system32 folder [xp-sp3]

it seems like the dll provided on 1.7 for gcc-win32 is not compatible with mingw .
when i compile the program on 1.7 and try to use a dll from 1.0 it says missing referance to functions found.

thanks anyway.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, you cannot mix versions of dll and Irrlicht apps. Just make sure you compile your app with the same version that the dll is from. Also, the mingw example should run with the mingw dll, and of course compilation would also work. That binary is made that way.
Post Reply