Hello Word just dont compile

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
Exebenus

Hello Word just dont compile

Post by Exebenus »

Hi everybody ! :)

Im new to Irricht and today a did copy the Hello World example but when I try to compile the VC++ keep thinking until I ask him to stop.

Im using VC++ 5.0 SP3.

I'd very glad if anyone could help me !

Thanks !

Fernando.
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

I do not thing that Irrlicht supports VC++ 5.0. I am sure that you are familer with it and all but I would suggest if you do not want to upgrade to download the free Dev-C++. A large number of the developer here work with the IDE and I have used it and enjoy it though I work with VS .NET 2003.
Exebenus

Post by Exebenus »

Thanks thesmileman !

I was trying to do it at work...ops ! At home I use VC++ 6 and if I'm not wrong the Hello Word was made in VC++6 too. I will try again at home.

Anyway, I'll take a look at Dev-C++. It's a GNU project ?
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

yup its GNU
I just love free software
Exebenus

Post by Exebenus »

I got Dev-C++ and It looks pretty good.


But I still can't compile HW. This time I've got an Link Error (undefined reference).

The example tells to do the following :

Code: Select all

#pragma comment(lib, "Irrlicht.lib")
But this file only exists in the lib\VisualStudio directory. The equivalent for DevC++ don't have this file. It have the following files :

Code: Select all

libirrlicht.a
libirrlicht.def
libjpeg.a
libz.a
Questions :
1) What do I have do adapt in my code ?
2) What is this file format (.a) ?


Thanks !
StuCollier
Posts: 52
Joined: Tue Mar 30, 2004 12:16 pm

Post by StuCollier »

In DevCpp you dont need the #pragma line.........

Just include the 3 .a files as per the tutorial
StuC
Freeware games
www.ovine.net
Exebenus

Post by Exebenus »

Thaks, Stu.

I did not look the tutorial like I should.... :oops:

Now I did compile it in DevCpp. But it doesn't execute.
The error message is :

Code: Select all

The procedure entry point ..... could not be located in the dynamic link library Irrlicht.dll
Yesterday, at home, I did compile and run properly using VC++6.0
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

i think your trying to use the VC++ dll with something compiled with gcc. Use the dll found in bin\devcpp
Exebenus

Post by Exebenus »

You're right !

Now everything its okay !


Thanks everybody !!
:lol:
Post Reply