Page 1 of 1

"Hello World" problem

Posted: Wed Jun 16, 2004 4:30 pm
by Guest
Hello I'm Bart and i'm completely new to 3D engines.
so i've started with the hello world example on the website.

i've followed all of the instructions, compiled it and tried to run it. but as i try to execute the exe i get the error:
Can't find entrypoint of procedure
_ZN3irr12createDeviceENS_5video11EDriverTypeERKNS_4core11dimension2dIiEEjbbPNS_14IEventRecieverEPKw in DLL-file IrrLicht.dll
In my logic there should be an error in the dll, but i know this is probably happening because i'm doing something wrong...

so, please anyone, what am i doing wrong???

thanks in advance,

Bart[/quote]

Posted: Wed Jun 16, 2004 4:40 pm
by VPB
Which compiler do you use :?: :?: :?: :?:

Posted: Wed Jun 16, 2004 5:44 pm
by Guest
Oh, sorry, forgot to mention it.

i'm using the "Dev-C++" compiler.

Posted: Wed Jun 16, 2004 5:48 pm
by VPB
i personal don't use that compiler but you may need to compile the dll-file yourself. There are several topics on this forum concerning Dev-c++, look into those :D

Posted: Wed Jun 16, 2004 8:53 pm
by Guest
yea you prob are linking to the wrong dll file. link to the devCPP file I belive.

Posted: Wed Jun 16, 2004 9:13 pm
by arras
I am using DevC++ myself and it works fine. You may look at this tutorial:

Tutorial 1.b Setting up the Dev-C++ IDE
http://irrlicht.sourceforge.net/tut001b.html

Posted: Wed Jun 16, 2004 10:01 pm
by warui
Make sure your program uses Irrlicht.dll form /bin/DevCpp directory, not the one form /bin/VisualStudio

Posted: Thu Jun 17, 2004 9:57 am
by Uncle B
thanks for the link, i'm at work now, but i'll try it as soon as I get home.
:oops: should have found that myself BTW :oops:
I got the Hello World tutorial from the exact same page!

Posted: Thu Jun 17, 2004 4:29 pm
by Uncle B
OK, as I said, I came home from work and tried this several times..
i've followed the tutorial step by step..

Now, when trying to compile, I'm getting the error "Unable to run program file"

this has to be somewhere in the settings.
I've even tried compiling an empty file and still i get the same error, so it can't be in the code.

any suggestions? :?

Posted: Thu Jun 17, 2004 5:50 pm
by Vinetu
Maybe you on Dev-cpp try to run directX. It dosen't work. Dev-cpp only works with OpenGl or Software (I don't recommend this render). That is my suggestion.

Posted: Thu Jun 17, 2004 9:02 pm
by arras
directx works also with DevC++ folow this link to get it:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=1700

anyway tutorial use softvare renderer so its not case of DirectX.

What might be problem is that code in DevC++ tutorial is may be older than one in Irr tutorials (I mean examples directory on your disk) so try to folow tutorial for hove to set up DevC++ but replace code with one from standart Hello World tutorial. Just use #include "irrlicht.h" instead of #include <irrlicht.h>

You can also skip #pragma comment(lib, "Irrlicht.lib") I think.

Posted: Fri Jun 18, 2004 6:34 pm
by Uncle B
Thanks for all help guys, Doesn't work yet, but I think I am the problem.
I probably screwed up the Dev-C++ installation with removing, installing, removing, installing, ect, etc.
Doesn't even compile non-IrrLicht related code anymore. So I'll just try to get that working before i'll bother You guys again.

I think I screwed up the compiler some where..
look at the last 3 lines of the compile log...
Executing make...
make.exe -f "C:\Documents and Settings\Bart z'n Computer\Mijn documenten\C++\test\Makefile.win" all
Execution terminated
Thanks for all, i'll get back to you when i got it working again :roll: :(

Posted: Sat Jun 19, 2004 12:33 am
by arras
A ye ...DevC++ doesnt like that. I had the same problem when I was reinstaling it under diferent name (I was uninstaling old one firsth) somehove it remembered old paths so I had to change them manualy. Look at your compiler and configuration options if you have valid paths selected...

Posted: Sat Jun 19, 2004 3:12 pm
by Uncle B
:D !!!!EUREKA!!!! :D

It involved some drastical actions,
but finally it works!!!!

:D :D :D :D :D :D :D :D

Posted: Sat Jun 19, 2004 5:37 pm
by arras
Happy compiling then... ;)