Problem compiling an application

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
kulanuja
Posts: 20
Joined: Sat Jun 14, 2008 11:10 am

Problem compiling an application

Post by kulanuja »

Hi,

I tried to download and compile the application posted at
http://irrlicht.sourceforge.net/phpBB2/ ... sc&start=0

But while compiling I get an error like

Code: Select all

1>------ Rebuild All started: Project: Movement_vc8, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'Movement_vc8', configuration 'Debug|Win32'
1>Compiling...
1>main.cpp
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(72) : warning C4305: 'argument' : truncation from 'double' to 'irr::f32'
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(72) : warning C4305: 'argument' : truncation from 'double' to 'irr::f32'
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(72) : warning C4305: 'argument' : truncation from 'double' to 'irr::f32'
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(73) : warning C4305: 'argument' : truncation from 'double' to 'irr::f32'
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(73) : warning C4305: 'argument' : truncation from 'double' to 'irr::f32'
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(84) : warning C4305: 'argument' : truncation from 'double' to 'irr::f32'
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(128) : warning C4305: '=' : truncation from 'double' to 'irr::f32'
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(143) : warning C4244: '=' : conversion from 'double' to 'irr::f32', possible loss of data
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(144) : warning C4244: '=' : conversion from 'double' to 'irr::f32', possible loss of data
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(145) : warning C4244: '=' : conversion from 'double' to 'irr::f32', possible loss of data
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(148) : warning C4244: 'argument' : conversion from 'irr::s32' to 'irr::f32', possible loss of data
1>e:\sussex\dissertation\irrlicht-1.4.1\examples\04.movement\main.cpp(117) : warning C4700: uninitialized local variable 'fpsTemp' used
1>Linking...
1>main.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall cSkeleton::setAnimType(enum CSK_ANIM)" (?setAnimType@cSkeleton@@QAEXW4CSK_ANIM@@@Z) referenced in function "public: void __thiscall cInput::handleInput(class cEventReceiver *,class cSkeleton *)" (?handleInput@cInput@@QAEXPAVcEventReceiver@@PAVcSkeleton@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall cSkeleton::~cSkeleton(void)" (??1cSkeleton@@QAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall cSkeleton::getMotionVariable(void)" (?getMotionVariable@cSkeleton@@QAEIXZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: enum CSK_ANIM __thiscall cSkeleton::getAnimType(void)const " (?getAnimType@cSkeleton@@QBE?AW4CSK_ANIM@@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall cSkeleton::animSkeleton(void)" (?animSkeleton@cSkeleton@@QAEXXZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: class irr::scene::IAnimatedMeshSceneNode * __thiscall cSkeleton::getSkeletonSceneNode(void)" (?getSkeletonSceneNode@cSkeleton@@QAEPAVIAnimatedMeshSceneNode@scene@irr@@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall cSkeleton::Initialize(class irr::scene::IAnimatedMeshSceneNode *,unsigned int)" (?Initialize@cSkeleton@@QAEXPAVIAnimatedMeshSceneNode@scene@irr@@I@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall cSkeleton::cSkeleton(void)" (??0cSkeleton@@QAE@XZ) referenced in function _main
1>..\..\bin\Win32-VisualStudio\04.Movement.exe : fatal error LNK1120: 8 unresolved externals
1>Build log was saved at "file://e:\Sussex\Dissertation\irrlicht-1.4.1\examples\04.Movement\Debug\BuildLog.htm"
1>Movement_vc8 - 9 error(s), 13 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
what cold be the reason for the same!!I am using Visual C++ 2008 Express edition.
Do we state the path for the "include" and "lib" folders in Visual C++ 2008 similar to how we do it in Visual Studio C++ 6.0?

Please help me.I am really stuck at this issue :cry:

Thanks and Regards
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Seems clear enough; you haven't built Skeleton.cpp. I don't know why it's in the /include directory, but it needs to be compiled. Go on, be kinky: just #include it in main.cpp. ;)

The warnings are also clear. They're benign though, even the fpsTemp one. Just put in explicit casts, and initialise fpsTemp to (e.g.) 0.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
kulanuja
Posts: 20
Joined: Sat Jun 14, 2008 11:10 am

Post by kulanuja »

Thanks a lot !!
Although I still have the warnings..atleast the code is compiling and running properly!! :o
Post Reply