Page 1 of 1

VC 2005 compile problem

Posted: Sat Dec 03, 2005 2:07 pm
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

Posted: Sat Dec 03, 2005 2:18 pm
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!

Posted: Sat Dec 03, 2005 2:30 pm
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:

Posted: Sat Dec 03, 2005 4:11 pm
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

Posted: Sat Dec 03, 2005 4:37 pm
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)

Posted: Sat Dec 03, 2005 5:59 pm
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

Posted: Sat Dec 03, 2005 6:16 pm
by afecelis
nice! works like a charm!

thanks highlander! :wink: