Build Problem
by Josh Riley · in Torque Game Engine · 10/18/2006 (12:13 am) · 4 replies
Hi Everyone,
I am pretty new to this and have basically just installed the engine and VS2005 Express It has been building fine, but when I attempted to set up my Xbox controller (after following the tdn tutorial), I ran into the following error.
------ Build started: Project: Torque Demo, Configuration: Release Win32 ------
Linking...
guiCanvas.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Input::setCursorPos(int,int)" (?setCursorPos@Input@@SAXHH@Z) referenced in function "public: virtual void __thiscall GuiCanvas::setCursorPos(class Point2I const &)" (?setCursorPos@GuiCanvas@@UAEXABVPoint2I@@@Z)
../example/torqueDemo.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Torque\engine\out.VC8.RELEASE\BuildLog.htm"
Torque Demo - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========
Any ideas?
Thanks in advance!
I am pretty new to this and have basically just installed the engine and VS2005 Express It has been building fine, but when I attempted to set up my Xbox controller (after following the tdn tutorial), I ran into the following error.
------ Build started: Project: Torque Demo, Configuration: Release Win32 ------
Linking...
guiCanvas.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Input::setCursorPos(int,int)" (?setCursorPos@Input@@SAXHH@Z) referenced in function "public: virtual void __thiscall GuiCanvas::setCursorPos(class Point2I const &)" (?setCursorPos@GuiCanvas@@UAEXABVPoint2I@@@Z)
../example/torqueDemo.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Torque\engine\out.VC8.RELEASE\BuildLog.htm"
Torque Demo - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========
Any ideas?
Thanks in advance!
#2
@Josh - Can you link the tutorial? I would also start by checking your function declarations and header includes. It looks like you either forgot to include a necessary header, friend a class, or miscoded the declaration for Input::setCursorPos()
10/18/2006 (9:43 am)
@Saska - He has an engine error, not a Torque Script problem. Also, I got TGE to build on both VS2K5 standard and express in less than 10 minutes of modification.@Josh - Can you link the tutorial? I would also start by checking your function declarations and header includes. It looks like you either forgot to include a necessary header, friend a class, or miscoded the declaration for Input::setCursorPos()
#3
Here is the tutorial I was following...
http://tdn.garagegames.com/wiki/Torque/EngineMods/Xbox360ControllerSupport
I havent modified anything outside of what this tutorial tells me to do.
I checked and rechecked my process through the setup of VS2005, everything seems to be fine.
I only got the build error AFTER I did the xbox tutorial.
10/18/2006 (11:50 am)
Hey Michael, thanks for your reply.Here is the tutorial I was following...
http://tdn.garagegames.com/wiki/Torque/EngineMods/Xbox360ControllerSupport
I havent modified anything outside of what this tutorial tells me to do.
I checked and rechecked my process through the setup of VS2005, everything seems to be fine.
I only got the build error AFTER I did the xbox tutorial.
#4
the first thing to do would be to verify that indeed you have the function in that class.
GuiCanvas::setCursorPos(..)
if the function exists, then it is prolly a simple compiler disaggrement.
perhaps the call to the function does not have the proper const ness about it.
10/18/2006 (12:16 pm)
Josh, the first thing to do would be to verify that indeed you have the function in that class.
GuiCanvas::setCursorPos(..)
if the function exists, then it is prolly a simple compiler disaggrement.
perhaps the call to the function does not have the proper const ness about it.
Torque Owner Mark Junior