i'm trying to compile a sample application with irrlicht. I unpacked the zip file and under Eclipse CDT i have set the include and library paths. However, i always get this error:
undefined reference to `irr::createDevice(irr::video::E_DRIVER_TYPE, irr::core::dimension2d<int> const&, unsigned int, bool, bool, bool, irr::IEventReceiver*, char const*)'
I'm using linux ubuntu 8.04.
Any ideias ?
undefined reference to irr::createDevice
What's the char* you've put as the final parameter of createDevice? It's certainly never been a parameter before version 1.4 of irrlicht (though could be in 1.4, i've not upgraded yet, tut tut).
EDIT: i see what it is now, the version of irrlicht.. but you shouldn't use it so don't specify a parameter for that, though it shouldn't be what's causing the problem...
EDIT: i see what it is now, the version of irrlicht.. but you shouldn't use it so don't specify a parameter for that, though it shouldn't be what's causing the problem...
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
You'll need to actually link with the Irrlicht library. I'm sure your IDE documentation will tell you how to do that.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Yes, he did say that.JP wrote:He said he's setup the library paths....
#pragma is implementation (i.e. compiler) dependent.JP wrote:Do you have the pragma comment that the tutorials use for linking?
Does Eclipse understand it?
No, apparently not.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Well, Eclipse is not a compiler, so why should it? If you can use Eclipse with MSVC it should support the pragma stuff.rogerborg wrote: #pragma is implementation (i.e. compiler) dependent.
Does Eclipse understand it?
No, apparently not.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Heh, fair point. Good luck using MSVC on Ubuntu though.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way