ogretokamak Error: linking problem

Problems building or running the engine, queries about how to use features etc.
Post Reply
ThomasTyndan
Gnoblar
Posts: 6
Joined: Thu Jan 13, 2005 3:48 pm

ogretokamak Error: linking problem

Post by ThomasTyndan » Thu Jan 13, 2005 3:54 pm

I am trying to build ogretokamak, but I am getting these error:


e:\Ogre\ogreaddons\ogretokamak\Demo\src\Application.cpp(234): error C2664: 'Ogre::Camera::yaw' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\Application.cpp(235): error C2664: 'Ogre::Camera::pitch' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(45): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(57): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(69): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(81): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(203): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(217): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(230): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\RagDoll.cpp(243): error C2664: 'Ogre::Quaternion::FromAngleAxis' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\TestSims.cpp(621): error C2664: 'Ogre::Matrix3::FromEulerAnglesXYZ' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'

e:\Ogre\ogreaddons\ogretokamak\Demo\src\TestSims.cpp(963): error C2664: 'Ogre::Matrix3::FromEulerAnglesXYZ' : cannot convert parameter 1 from 'float' to 'const Ogre::Radian &'


I am using Microsoft Visual .Net and do not want to make "guesses" and screw up the program, so I am just going to ask, what do I need to do to get it to build?
Last edited by ThomasTyndan on Thu Jan 13, 2005 5:44 pm, edited 1 time in total.
0 x

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
Contact:

Post by haffax » Thu Jan 13, 2005 4:00 pm

ogretokamak, has not been updated for a while. So it doesn't build, because of changes that have been made to Ogre in the meanwhile.
But you can adapt it to the changes easily yourself.
Look here for instructions: http://www.ogre3d.org/phpBB2/viewtopic. ... highlight=.

[edit]
Note: The "old" Quaternion class interpreted Ogre::Real values as Radian, but SceneNode as Degree.
[/edit]
Last edited by haffax on Thu Jan 13, 2005 4:04 pm, edited 1 time in total.
0 x
team-pantheon programmer
creators of Rastullahs Lockenpracht

ThomasTyndan
Gnoblar
Posts: 6
Joined: Thu Jan 13, 2005 3:48 pm

Post by ThomasTyndan » Thu Jan 13, 2005 4:04 pm

Thanks, I feel like a real newb or something. I will work with it and post if I still have problems.
0 x

ThomasTyndan
Gnoblar
Posts: 6
Joined: Thu Jan 13, 2005 3:48 pm

Post by ThomasTyndan » Thu Jan 13, 2005 5:13 pm

Okay I now have a new problem, its a linker error the output is as follows:

------ Build started: Project: Demo, Configuration: Release Win32 ------

Linking...
Application.obj : error LNK2001: unresolved external symbol __fltused
Building.obj : error LNK2001: unresolved external symbol __fltused
RagDoll.obj : error LNK2001: unresolved external symbol __fltused
TestSims.obj : error LNK2001: unresolved external symbol __fltused
TestSims.obj : error LNK2001: unresolved external symbol _memmove
libcp.lib(string.obj) : error LNK2001: unresolved external symbol _memmove
Application.obj : error LNK2019: unresolved external symbol _memmove referenced in function "public: static char * __cdecl std::char_traits<char>::move(char *,char const *,unsigned int)" (?move@?$char_traits@D@std@@SAPADPADPBDI@Z)
Building.obj : error LNK2001: unresolved external symbol _memmove
Demo.obj : error LNK2001: unresolved external symbol _memmove
RagDoll.obj : error LNK2001: unresolved external symbol _memmove
TestSims.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
libcp.lib(string.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler
Application.obj : error LNK2019: unresolved external symbol ___CxxFrameHandler referenced in function __ehhandler$??1Application@@UAE@XZ
Building.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
Demo.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
RagDoll.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
TestSims.obj : error LNK2001: unresolved external symbol __except_list
libcp.lib(string.obj) : error LNK2001: unresolved external symbol __except_list
Application.obj : error LNK2019: unresolved external symbol __except_list referenced in function "public: virtual __thiscall Application::~Application(void)" (??1Application@@UAE@XZ)
Building.obj : error LNK2001: unresolved external symbol __except_list
Demo.obj : error LNK2019: unresolved external symbol __except_list referenced in function _$E7
RagDoll.obj : error LNK2001: unresolved external symbol __except_list
TestSims.obj : error LNK2001: unresolved external symbol __CxxThrowException@8
libcp.lib(string.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
Application.obj : error LNK2019: unresolved external symbol __CxxThrowException@8 referenced in function "protected: void __thiscall Application::showOverlay(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?showOverlay@Application@@IAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z)
Building.obj : error LNK2001: unresolved external symbol __CxxThrowException@8
Demo.obj : error LNK2001: unresolved external symbol __CxxThrowException@8
RagDoll.obj : error LNK2001: unresolved external symbol __CxxThrowException@8
Application.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
Demo.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
libcp.lib(string.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
Application.obj : error LNK2019: unresolved external symbol _sprintf referenced in function "protected: bool __thiscall Application::processUnbufferedKeyInput(void)" (?processUnbufferedKeyInput@Application@@IAE_NXZ)
TestSims.obj : error LNK2001: unresolved external symbol _atexit
Application.obj : error LNK2019: unresolved external symbol _atexit referenced in function _$E1
Building.obj : error LNK2001: unresolved external symbol _atexit
Demo.obj : error LNK2001: unresolved external symbol _atexit
RagDoll.obj : error LNK2001: unresolved external symbol _atexit
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
libcp.lib(string.obj) : error LNK2019: unresolved external symbol _strlen referenced in function "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z)
libcp.lib(string.obj) : error LNK2019: unresolved external symbol _memcpy referenced in function "public: static char * __cdecl std::char_traits<char>::copy(char *,char const *,unsigned int)" (?copy@?$char_traits@D@std@@SAPADPADPBDI@Z)
libcp.lib(string.obj) : error LNK2019: unresolved external symbol __EH_prolog referenced in function "protected: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned int,unsigned int)" (?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXII@Z)
libcp.lib(string.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall exception::~exception(void)" (??1exception@@UAE@XZ) referenced in function $L11510
libcp.lib(string.obj) : error LNK2019: unresolved external symbol "public: __thiscall exception::exception(void)" (??0exception@@QAE@XZ) referenced in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
libcp.lib(string.obj) : error LNK2001: unresolved external symbol "public: __thiscall exception::exception(class exception const &)" (??0exception@@QAE@ABV0@@Z)
LINK : error LNK2001: unresolved external symbol __load_config_used
.\release/Demo.exe : fatal error LNK1120: 16 unresolved externals

Build log was saved at "file://e:\Ogre\ogreaddons\ogretokamak\Demo\release\BuildLog.htm"
Demo - 46 error(s), 0 warning(s)


---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped
0 x

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
Contact:

Post by haffax » Thu Jan 13, 2005 7:17 pm

Hmm. There are probably some lib references missing in the project file. Maybe your default library set differs from the ogretoc developer's. I don't know all the libs that are needed, but as far as I can see you need to add at least msvcrt.lib (msvcrtd.lib in debug)

Or maybe you link with the option /NODEFAULTLIB if so, you should remove it. The option is called "Ignore default libraries" or something similiar (have a german VC).
0 x
team-pantheon programmer
creators of Rastullahs Lockenpracht

ThomasTyndan
Gnoblar
Posts: 6
Joined: Thu Jan 13, 2005 3:48 pm

Post by ThomasTyndan » Fri Jan 14, 2005 1:45 am

Okay I managed to fix 16 out of the 90 errors from the above error return, by adding OgreMain_d.lib to the additional dependencies, but I cannot seem to find the solution to the other errors.

Does anyone have a stable version?
0 x

ThomasTyndan
Gnoblar
Posts: 6
Joined: Thu Jan 13, 2005 3:48 pm

Post by ThomasTyndan » Fri Jan 14, 2005 2:22 pm

I figured it out! You have to take "LIBCD" out of the Ignore Specific Library section in the Properties->Linker->Input for both Release and Debug.
0 x

Post Reply