Error undefined reference to while buildling the project
Error undefined reference to while buildling the project
at the time of bulding the project i m getting a error message as
main.cpp:51: undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE'
the line wer it leads me for the error is:
IrrlichtDevice *device =
createDevice(driverType, core::dimension2d<s32>(640, 480), 16, false);
i m trying really hard but no solution
can someone help me as soon as possible
main.cpp:51: undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE'
the line wer it leads me for the error is:
IrrlichtDevice *device =
createDevice(driverType, core::dimension2d<s32>(640, 480), 16, false);
i m trying really hard but no solution
can someone help me as soon as possible
-
kavita_dubey
- Posts: 22
- Joined: Thu Oct 08, 2009 8:47 am
it still doesnt works
added Irrlicht.a file in path and also set values in env variables
if still it doesnt works out then whts wrong?
if still it doesnt works out then whts wrong?
-
kavita_dubey
- Posts: 22
- Joined: Thu Oct 08, 2009 8:47 am
same problm
i have the similar problm
all dll files and .a files are in path
but stil its nt working

all dll files and .a files are in path
but stil its nt working
-
kavita_dubey
- Posts: 22
- Joined: Thu Oct 08, 2009 8:47 am
please fast
plss answer the query
its a bit urgent
its a bit urgent
-
kavita_dubey
- Posts: 22
- Joined: Thu Oct 08, 2009 8:47 am
chk this plz
1."C:\irrlicht-1.5.1\lib\Win32-gcc" contains Irrlicht.a i have put that into build path
2. added Irrlivht.dll into project directory
3. added "C:\irrlicht-1.5.1\include" which contains all .h files into directories to be added
4. Set the env variable C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\3.4.5 which includes the compiler fr c++
what to do other than that
2. added Irrlivht.dll into project directory
3. added "C:\irrlicht-1.5.1\include" which contains all .h files into directories to be added
4. Set the env variable C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\3.4.5 which includes the compiler fr c++
what to do other than that
If you would tell us which IDE you use I'm sure somebody could tell you how to link the library.
Since you did not do this I would recommend reading the documentation of your IDE how to link other libraries.
Since you did not do this I would recommend reading the documentation of your IDE how to link other libraries.
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
hmm
i m using eclipse IDE for the MinGW C++ compiler
-
kavita_dubey
- Posts: 22
- Joined: Thu Oct 08, 2009 8:47 am
problm
I havnt added any SW renderer like OpenGL or Direct3D
is tht the problm?
is tht the problm?
-
kavita_dubey
- Posts: 22
- Joined: Thu Oct 08, 2009 8:47 am
help
Can someone tell me DirectX 9 is good for my project scenario's??
Sylence already did give you the solution to the linker problem. You have to add the link-library to your project. Just search your IDE for some menu that allows you to link libraries. And make sure you use the correct version - in your case the one in the Win32-gcc folder.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
if you would use visual studio (express is free and all you need), it would be a lot easier for you, on osX I only know Xcode and on Linux I only know CodeBlocks... I would say those are the most common IDE's, for quite the majority of people here.
And as CuteAlien already told you, the library you use for running any exe must be the same library that was also used when linking (against the library) the exe at compile time.
So best if you open the irrlicht sdk (svn version) and compile the library (irrlicht.dll/.lib on windows and irllicht.a on a mac) yourself, afterwards compile your exe again and link against the irrlicht library that you previously compiled on your system with same version as the sdk you are using...
Only works that way.
Edit:
Of course you can also just use the stable precompiled non svn version, but make sure you are linking against the same library that was compiled using the includes and src of the sdk that you are actually using.
And as CuteAlien already told you, the library you use for running any exe must be the same library that was also used when linking (against the library) the exe at compile time.
So best if you open the irrlicht sdk (svn version) and compile the library (irrlicht.dll/.lib on windows and irllicht.a on a mac) yourself, afterwards compile your exe again and link against the irrlicht library that you previously compiled on your system with same version as the sdk you are using...
Only works that way.
Edit:
Of course you can also just use the stable precompiled non svn version, but make sure you are linking against the same library that was compiled using the includes and src of the sdk that you are actually using.
-
kavita_dubey
- Posts: 22
- Joined: Thu Oct 08, 2009 8:47 am
:(
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
i have linked the Include folder itself in directories,
now whts the problm
1. Irrlicht7.1.sln
2. Irrlicht8.0.sln
3. Irrlicht9.0.sln
and
4. Irrlicht_mobile6.sln
i have linked the Include folder itself in directories,
now whts the problm