1 Error compiling with Codeblocks under Ubuntu 9.04 [SOLVED]

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
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

1 Error compiling with Codeblocks under Ubuntu 9.04 [SOLVED]

Post by noreg »

With Make it compiles fine. Its a fresh Ubuntu install especially for Irrlicht 1.5.1. With Codeblocks i get the error:

Code: Select all

linking console executable: ../../bin/gcc/RenderToTexture
.objs/main.o: In function `main':
/home/micky/irrlicht-1.5.1/examples/13.RenderToTexture/main.cpp:49: undefined reference to `irr::createDevice(irr::video::E_DRIVER_TYPE, irr::core::dimension2d<int> const&, unsigned int, bool, bool, bool, irr::IEventReceiver*)'
collect2: ld gab 1 als Ende-Status zurück
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

FreakNigh proposed to link to the right libraries:
http://irrlicht.sourceforge.net/phpBB2/ ... f2039996cf

Is that the correct solution and if, could someone please leak the secret (for stupid me) how to do that ? Thanks.
Last edited by noreg on Mon Oct 12, 2009 11:14 am, edited 1 time in total.
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

Post by noreg »

Solved it. Simply the path is not enough. you also have to explicitly point to the libirrlicht.a.
Nevermind.
Post Reply