Compile Irrlicht with Turbo C++

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
uninvolved
Posts: 15
Joined: Thu Aug 02, 2007 4:33 am

Compile Irrlicht with Turbo C++

Post by uninvolved »

Trying to compile irrlicht in Borland's Turbo C++

Code: Select all

[Linker Error] Error: Unresolved external '__InitVCL' referenced from C:\PROGRAM FILES\BORLAND\BDS\4.0\LIB\CP32MTI.LIB|crtlvcl
[Linker Error] Error: Unresolved external '__ExitVCL' referenced from C:\PROGRAM FILES\BORLAND\BDS\4.0\LIB\CP32MTI.LIB|crtlvcl
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::tick()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICEWIN32.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Printer::log(const char *, irr::ELOG_LEVEL)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICEWIN32.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Printer::log(const char *, const char *, irr::ELOG_LEVEL)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CZIPREADER.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::getRealTime()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::getTime()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::setTime(unsigned int)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::stopTimer()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::startTimer()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::setSpeed(float)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::getSpeed()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::isStopped()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Timer::initTimer()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Printer::print(const char *)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CLOGGER.OBJ
[Linker Error] Error: Unresolved external 'irr::os::Printer::Logger' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIRRDEVICESTUB.OBJ
[Linker Error] Error: Unresolved external 'D3DXAssembleShader' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CD3D8SHADERMATERIALRENDERER.OBJ
[Linker Error] Error: Unresolved external 'D3DXFilterTexture' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CD3D8TEXTURE.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Byteswap::byteswap(unsigned int)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIMAGELOADERPSD.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Byteswap::byteswap(unsigned short)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CIMAGELOADERPSD.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Printer::log(const wchar_t *, irr::ELOG_LEVEL)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CNULLDRIVER.OBJ
[Linker Error] Error: Unresolved external 'D3DXCompileShader' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CD3D9SHADERMATERIALRENDERER.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Randomizer::rand()' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\CPARTICLEPOINTEMITTER.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Byteswap::byteswap(int)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\COGREMESHFILELOADER.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Byteswap::byteswap(short)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\COGREMESHFILELOADER.OBJ
[Linker Error] Error: Unresolved external '__stdcall irr::os::Byteswap::byteswap(float)' referenced from C:\LIB\IRRLICHT\SOURCE\IRRLICHT\RELEASE_BUILD\COGREMESHFILELOADER.OBJ
What's goin' on fellas?
NoodlePowa
Posts: 32
Joined: Sun Jul 15, 2007 1:02 pm
Location: California

Post by NoodlePowa »

I don't know, and I'm not sure, but whenever my linker nags at me, I'm forgetting to use Irrlicht.lib...
"Be not ashamed of mistakes and thus make them crimes."
-Confucius
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have to go to include/IrrCompileConfig.h and ensure that you get the correct setup. I guess you need _IRR_WINDOWS_API_ set and also _IRR_WINDOWS_, finally you need _IRR_USE_WINDOWS_DEVICE_. Maybe disable directx first, because linking with the d3d dlls is often error prone.
Post Reply