Error undefined reference to while buildling the project

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.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: :(

Post by randomMesh »

kavita_dubey wrote:The source/include folder of Irrlicht contains three versions of .sln files
1. Irrlicht7.1.sln
2. Irrlicht8.0.sln
3. Irrlicht9.0.sln
and
4. Irrlicht_mobile6.sln
These are for Microsoft Visual Studio. If you are still using Eclipse and MinGW, this are the wrong files.

You need to add the library in lib/Win32-gcc to your linker setting.
"Whoops..."
kavita_dubey
Posts: 22
Joined: Thu Oct 08, 2009 8:47 am

Post by kavita_dubey »

i have done that
it still contains the error
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

kavita_dubey wrote:i have done that
it still contains the error
Please post the complete console output of Eclipse.
"Whoops..."
kavita_dubey
Posts: 22
Joined: Thu Oct 08, 2009 8:47 am

This is the problm

Post by kavita_dubey »

**** Build of configuration Debug for project ExportingExample ****

**** Internal Builder is used for build ****
g++ -IC:\irrlicht-1.5.1\include -IC:\irrlicht-1.5.1\lib\Win32-gcc -IC:\irrlicht-1.5.1\source\Irrlicht -O0 -g3 -Wall -c -fmessage-length=0 -osrc\main.o ..\src\main.cpp
g++ -LC:\irrlicht-1.5.1\lib\Win32-gcc -LC:\irrlicht-1.5.1\source\Irrlicht\zlib -LC:\irrlicht-1.5.1\source\Irrlicht\jpeglib -LC:\irrlicht-1.5.1\source\Irrlicht\libpng -LC:\MinGW\lib\gcc\mingw32\3.4.5 -LC:\MinGW\lib -LC:\WINDOWS\system32 -oExportingExample.exe src\main.o
src\main.o: In function `main':
C:/Documents and Settings/285108/workspace/ExportingExample/Debug/../src/main.cpp:50: undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE'
collect2: ld returned 1 exit status
Build error occurred, build is stopped
Time consumed: 25182 ms.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

You still haven't add the library itself only the paths where the linker should search.

If you aren't familar with compiling and linking c++ applications I would suggest you start with some basics and come back to irrlicht when you feel more comfortable coding in c++.
If you lack the basics of C++ you will only get problems when working with an advanced thing like Irrlicht.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
kavita_dubey
Posts: 22
Joined: Thu Oct 08, 2009 8:47 am

bad

Post by kavita_dubey »

I guess no one knws any technology
all have to start one day
I will take it as a sugesstion
but still i copied the console thing which someone asked me to do
whihc libraries u r talking abt?
can u plzz name them
i m really in need
zillion42
Posts: 324
Joined: Wed Aug 29, 2007 12:32 am
Location: Hamburg, Germany

Post by zillion42 »

well, there's a lot of "getting started" examples for visual studio even in the offical irrlicht doku... In fact it's a simple as double clicking .sln file, then adding two paths to the IDE, one being the include folder and the other the library folder and pressing the build button...
I'll try to find you some links, meanwhile maybe you download the free version of visual studio express:

http://www.microsoft.com/express/download/#webInstall

aswell as the platform sdk and directx sdk:

http://www.microsoft.com/downloads/deta ... laylang=en

and

http://www.microsoft.com/downloads/deta ... laylang=en

EDIT:
Read this after you installed everything:
http://irrlicht.sourceforge.net/tut001.html

EDIT2:
to break it down, written in clear words those are things you'll have to do no matter which IDE. Taken from tutorial 1:
select the Menu Extras -> Options. Select the directories tab, and select the 'Include' Item in the combo box. Add the include directory of the irrlicht engine folder to the list of directories. Now the compiler will find the Irrlicht.h header file. We also need the irrlicht.lib to be found, so stay in that dialog, select 'Libraries' in the combo box and add the lib/VisualStudio directory.
EDIT4:
http://lmgtfy.com/?q=setting+up+eclipse+irrlicht results in the first link:
http://irrlicht.sourceforge.net/phpBB2/ ... a1e2b4b4d3
EDIT3:
We heard that now, but you're not really "using" it yet, so maybe you shouldnt, and instead go with something that will allow you to actually get help from the majority of people here.
|
|
\/
Last edited by zillion42 on Fri Oct 09, 2009 1:39 pm, edited 4 times in total.
kavita_dubey
Posts: 22
Joined: Thu Oct 08, 2009 8:47 am

Post by kavita_dubey »

but i m using eclipse
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

But only few (if any) people here in the forum are using eclipse for c++ development afaik.

So you can change to something more people use here and get better help, or you have to ask in the eclipse forum (or read the documentation).
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
Post Reply