"Hello World" 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.
Post Reply
Guest

"Hello World" problem

Post 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]
VPB
Posts: 36
Joined: Sat Apr 10, 2004 8:02 am

Post by VPB »

Which compiler do you use :?: :?: :?: :?:
Guest

Post by Guest »

Oh, sorry, forgot to mention it.

i'm using the "Dev-C++" compiler.
VPB
Posts: 36
Joined: Sat Apr 10, 2004 8:02 am

Post 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
Guest

Post by Guest »

yea you prob are linking to the wrong dll file. link to the devCPP file I belive.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post 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
warui
Posts: 232
Joined: Wed Apr 14, 2004 12:06 pm
Location: Lodz, Poland
Contact:

Post by warui »

Make sure your program uses Irrlicht.dll form /bin/DevCpp directory, not the one form /bin/VisualStudio
Tomasz Nowakowski
Openoko - www.openoko.pl
Uncle B
Posts: 4
Joined: Wed Jun 16, 2004 4:21 pm

Post 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!
Uncle B
Posts: 4
Joined: Wed Jun 16, 2004 4:21 pm

Post 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? :?
Vinetu
Posts: 27
Joined: Wed Apr 07, 2004 6:57 am
Location: Lithuania
Contact:

Post 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.
"Teach yourself DISCIPLINE."

Your sincerely,
Saulius Šunauskas
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post 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.
Uncle B
Posts: 4
Joined: Wed Jun 16, 2004 4:21 pm

Post 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: :(
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post 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...
Uncle B
Posts: 4
Joined: Wed Jun 16, 2004 4:21 pm

Post by Uncle B »

:D !!!!EUREKA!!!! :D

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

:D :D :D :D :D :D :D :D
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Happy compiling then... ;)
Post Reply