noob question

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
spiff88
Posts: 15
Joined: Fri Nov 23, 2007 5:52 pm
Location: Michigan

noob question

Post by spiff88 »

Im just starting i have a very basic programming knowledge that doesnt include c++ but ill learn eventually so bare with me, ive followed the first tut and tried to build it and it failed, i think the problem had to do with the include and dll directories which i cant seem to figure out because the tut only tells you how to do that with an older version of vc++ which i have the newest one so if someone can please explain how to do this it would be awsome
JamesCobras
Posts: 17
Joined: Thu Aug 28, 2008 10:42 am

Re: noob question

Post by JamesCobras »

spiff88 wrote:older version of vc++ which i have the newest one so if
Which one do you have Visual C++ 2008 by Microsoft?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

what version of vc++ have you got?

the only thing you'll want to do with the dll is put a copy into the directory that your program's .exe is in.

the two things you need to worry about when creating your app are the include folder and linking to the irrlicht library, in the lib folder.
Image Image Image
spiff88
Posts: 15
Joined: Fri Nov 23, 2007 5:52 pm
Location: Michigan

Post by spiff88 »

im using 2008 and yeah i know those are the 2 things im having problems with linking them idk how to do it
JamesCobras
Posts: 17
Joined: Thu Aug 28, 2008 10:42 am

Post by JamesCobras »

spiff88 wrote:im using 2008
look here it says vc 6 but they are the same

look at "Setting up the IDE" the second bullet point down!

Read it carefully and the pics give a good clue.

http://irrlicht.sourceforge.net/tut001.html
spiff88
Posts: 15
Joined: Fri Nov 23, 2007 5:52 pm
Location: Michigan

Post by spiff88 »

ive done that and followed the fisrt tut and try to build it and comes up with all these errors
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

And you expect us to simply guess what errors you're getting?

If you want meaningful help, provide enough details for us to diagnose the problem. It's your own time you're wasting.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Sleddog
Posts: 7
Joined: Sun Aug 31, 2008 4:26 pm

Post by Sleddog »

I too am having a similar problem. I don't think this is an Irrlicht problem per se, but more of a problem pertaining to working with libraries. I just have no experience with it!

I am using Eclipse (with C++) on Linux and I have tried just about everything I can think of to get this library working. I have:

1) Put the irrlicht-1.4.1 folder in /usr/lib/ and run a 'make' in the source folder to create libirrlicht.a successfully.
2) Added the entire folder to my project (it took about 20 minutes on my comp to build the engine with about 1000 errors).
3) Added paths in Eclipse to the library while the irrlicht folder was on my desktop.
4) Put the libirrlicht.a file into /usr/lib/ and referenced irrlicht.h in /usr/include/ successfully.
5) More that I can't remember...

I am simply confused on how exactly to use a library to supplement my code.

In all of these tries I have gotten it to recognize irrlicht.h and the majority of the tutorial will come through error free. However, on the line

Code: Select all

IrrlichtDevice *device = createDevice(video::EDT_OPENGL, dimension2d<s32>(512, 384), 16,	false, false, false, 0, IRRLICHT_SDK_VERSION);
it gives me the error

Code: Select all

undefined reference to `irr::createDevice(irr::video::E_DRIVER_TYPE, irr::core::dimension2d<int> const&, unsigned int, bool, bool, bool, irr::IEventReceiver*, char const*)'
Please help!
Post Reply