Compile error, need help........

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
Snoopy
Posts: 4
Joined: Sun Jul 31, 2005 4:47 am

Compile error, need help........

Post by Snoopy »

i am kind of a noob :D :D ,

but when ever i try to compile the Hallo world program i get this error
1>main.obj : error LNK2019: unresolved external symbol __imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@PB_W@Z referenced in function _main
1>Debug\irrlicht23.exe : fatal error LNK1120: 1 unresolved externals
it has something to do with this line

Code: Select all

IrrlichtDevice *device = createDevice(EDT_SOFTWARE, dimension2d<s32>(640, 480), 16, false, false, false, 0);
i am new to c++, i use Visual studio c++ 2005 express beta,
xD
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

did you download the MS developer's sdk?

I'm not sure of it, but the last time I tried the 2005 express beta I had to add the dev sdk's "include" and "lib" folders for the program to compile properly.
Snoopy
Posts: 4
Joined: Sun Jul 31, 2005 4:47 am

Post by Snoopy »

i haven't download the MS developer's sdk,

but what is the best free compiler//
xD
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

the express beta is a bitch to get going. There's a recent thread around here on it.

A decent, free, easy to set up compiler would be Bloodshed's Dev-C++
http://www.bloodshed.net/dev/devcpp.html
grab the first one that includes the Mingw/GCC 3.4.2

In the Irrlicht example folders, there are dev-c++ project files included so if you just open one of those everything should be set up for you.
When it comes time to make your own app, there are a few threads about that tell you how to set up all of your paths.

Once you make an executable with this, you need to use the Irrlicht.dll found in the \irrlicht-0.10.0\bin\Win32-gcc folder.

-m

EDIT::
http://www.3dcentral.net/tutorial/irr-devcpp/
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

If you download the SDK then you should give MSVC toolkit 2003(free)+Codeblocks a try.

you won't get into all the trouble of trying to get DevC++ to compile DX.

tut here:
http://irrlicht.sourceforge.net/phpBB2/ ... 0834#40834
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

I just checked out that thread and i think I'll give it a shot.
Just because of the DX issue.
Not to mention that Code::Blocks will allow you to do multiple projects (if that ever becomes an issue for you)
I've really been grooving on Dev-C++, but it sounds like its time to move up.
Snoopy
Posts: 4
Joined: Sun Jul 31, 2005 4:47 am

Post by Snoopy »

thanks heaps for the help,

i will download MSVC toolkit 2003 + Codeblocks,
:D :D :D :D :) :mrgreen:
Post Reply