Page 1 of 1

noob question

Posted: Thu Aug 28, 2008 3:54 pm
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

Re: noob question

Posted: Thu Aug 28, 2008 4:02 pm
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?

Posted: Thu Aug 28, 2008 4:03 pm
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.

Posted: Thu Aug 28, 2008 4:10 pm
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

Posted: Thu Aug 28, 2008 4:31 pm
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

Posted: Thu Aug 28, 2008 4:59 pm
by spiff88
ive done that and followed the fisrt tut and try to build it and comes up with all these errors

Posted: Thu Aug 28, 2008 6:09 pm
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.

Posted: Sun Aug 31, 2008 4:43 pm
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!