VC 2005 compile problem

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
lincsimp
Posts: 21
Joined: Sat Mar 12, 2005 10:11 pm

VC 2005 compile problem

Post by lincsimp »

Hi
When I try to compile the source I get the errors:

Linking...
Irrlicht.obj : warning LNK4224: /COMMENT is no longer supported; ignored
Creating library .\..\Debug/Irrlicht.lib and object .\..\Debug/Irrlicht.exp
CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol "class irr::video::IVideoDriver * __cdecl irr::video::createSoftwareDriver2(class irr::core::dimension2d const &,bool,class irr::io::IFileSystem *,class irr::video::IImagePresenter *)" (?createSoftwareDriver2@video@irr@@YAPAVIVideoDriver@12@ABV?$dimension2d@H@core@2@_NPAVIFileSystem@io@2@PAVIImagePresenter@12@@Z) referenced in function "private: void __thiscall irr::CIrrDeviceWin32::createDriver(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d const &,unsigned int,bool,bool,bool,bool)" (?createDriver@CIrrDeviceWin32@irr@@AAEXW4E_DRIVER_TYPE@video@2@ABV?$dimension2d@H@core@2@I_N222@Z)
.\..\Debug/Irrlicht.dll : fatal error LNK1120: 1 unresolved externals


What do I need to do?
cheers
Duncan Mac Leod
Posts: 64
Joined: Sun May 22, 2005 3:06 pm
Location: Germany
Contact:

Post by Duncan Mac Leod »

same problem here!

Irrlicht.obj : warning LNK4224: /COMMENT is no longer supported; ignored
Creating library .\..\Release/Irrlicht.lib and object .\..\Release/Irrlicht.exp
CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol "class irr::video::IVideoDriver * __cdecl irr::video::createSoftwareDriver2(class irr::core::dimension2d<int> const &,bool,class irr::io::IFileSystem *,class irr::video::IImagePresenter *)" (?createSoftwareDriver2@video@irr@@YAPAVIVideoDriver@12@ABV?$dimension2d@H@core@2@_NPAVIFileSystem@io@2@PAVIImagePresenter@12@@Z) referenced in function "private: void __thiscall irr::CIrrDeviceWin32::createDriver(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,bool)" (?createDriver@CIrrDeviceWin32@irr@@AAEXW4E_DRIVER_TYPE@video@2@ABV?$dimension2d@H@core@2@I_N222@Z)
.\..\Release/Irrlicht.dll : fatal error LNK1120: 1 unresolved externals

plz help!
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I had the same problem so what I did was opening the "Irrlicht7.1" vc project, let VC2005 convert it and compile that one instead. This one won't throw you those errors :wink:
Duncan Mac Leod
Posts: 64
Joined: Sun May 22, 2005 3:06 pm
Location: Germany
Contact:

Post by Duncan Mac Leod »

GOT IT FIXED!

The 8.0 Project is missing some files :cry: ...

Add the following files to get it fixed:

irr impl -> extern -> jpeglib | add jpeglib\cdjpeg.c
--
include -> scene | add .\include\SceneParameters.h
--
video impl | create new filter Software2
--
video impl -> Software2 | add the following files:

.\CSoftwareDriver2.cpp
.\CSoftwareDriver2.h
.\CSoftwareTexture2.cpp
.\CSoftwareTexture2.h
.\CTRTextureGouraud2.cpp
.\CTRTextureGouraudAlpha2.cpp
.\CTRTextureGouraudNoZ2.cpp
.\CTRTextureLightMap2_M1.cpp
.\CTRTextureLightMap2_M1.h
.\CTRTextureLightMap2_M2.cpp
.\CTRTextureLightMap2_M4.cpp
.\CZBuffer2.cpp
.\CZBuffer2.h
.\ITriangleRenderer2.h
.\IZBuffer2.h
.\S4DVertex.h
.\SoftwareDriver2_compile_config.h
.\SoftwareDriver2_helper.h

@NIKO - PLZ FIX THIS in the 8.0 Project File - THANK YOU!

Duncan
--
Tucan Entertainment
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

how or where do you add that info? :roll:

or plz upload you msvc8.0 project files somewhere.

or is it just a matter of adding the extra include folders? (zlib, jpeglib, etc)
Duncan Mac Leod
Posts: 64
Joined: Sun May 22, 2005 3:06 pm
Location: Germany
Contact:

Post by Duncan Mac Leod »

Updated Project File for 8.0 (VC++ 2005 Express)...

http://www.tucan-entertainment.com/Irrlicht8.0.vcproj

HF,
Duncan
--
Tucan Entertainment
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

nice! works like a charm!

thanks highlander! :wink:
Post Reply