Actionmap.obj Problem
by raa brubb · in Torque 3D Professional · 01/28/2014 (12:04 pm) · 14 replies
Hey all,
I am having a problem compiling my DLL in the .sln file.
At the very end of the compilation of the DLL, it does WindDispatch.cpp and then BOOM! It has problems with the actionMap.obj file it created.
What in the world do I do?
I am having a problem compiling my DLL in the .sln file.
At the very end of the compilation of the DLL, it does WindDispatch.cpp and then BOOM! It has problems with the actionMap.obj file it created.
Error 20 error LNK2019: unresolved external symbol "public: bool __thiscall InputEventManager::isRegisteredDevice(unsigned int)" (?isRegisteredDevice@InputEventManager@@QAE_NI@Z) referenced in function "public: bool __thiscall ActionMap::processAction(struct InputEventInfo const *)" (?processAction@ActionMap@@QAE_NPBUInputEventInfo@@@Z) C:UsersKhuzadiDownloadsTorque3D-masterMy ProjectsDraftedbuildFilesVisualStudio 2010projectsactionMap.obj Error 17 error LNK2019: unresolved external symbol "public: bool __thiscall InputEventManager::isRegisteredDeviceWithAttributes(char const *,unsigned int &,unsigned int &)" (?isRegisteredDeviceWithAttributes@InputEventManager@@QAE_NPBDAAI1@Z) referenced in function "public: static bool __cdecl ActionMap::getDeviceTypeAndInstance(char const *,unsigned int &,unsigned int &)" (?getDeviceTypeAndInstance@ActionMap@@SA_NPBDAAI1@Z) C:UsersKhuzadiDownloadsTorque3D-masterMy ProjectsDraftedbuildFilesVisualStudio 2010projectsactionMap.obj Error 19 error LNK2019: unresolved external symbol "public: char const * __thiscall InputEventManager::findVirtualMapDescFromCode(unsigned int)" (?findVirtualMapDescFromCode@InputEventManager@@QAEPBDI@Z) referenced in function "public: static bool __cdecl ActionMap::getKeyString(unsigned int,char *)" (?getKeyString@ActionMap@@SA_NIPAD@Z) C:UsersKhuzadiDownloadsTorque3D-masterMy ProjectsDraftedbuildFilesVisualStudio 2010projectsactionMap.obj Error 18 error LNK2019: unresolved external symbol "public: char const * __thiscall InputEventManager::getRegisteredDeviceName(unsigned int)" (?getRegisteredDeviceName@InputEventManager@@QAEPBDI@Z) referenced in function "public: static bool __cdecl ActionMap::getDeviceName(unsigned int,unsigned int,char *)" (?getDeviceName@ActionMap@@SA_NIIPAD@Z) C:UsersKhuzadiDownloadsTorque3D-masterMy ProjectsDraftedbuildFilesVisualStudio 2010projectsactionMap.obj Error 16 error LNK2019: unresolved external symbol "public: struct InputEventManager::VirtualMapData * __thiscall InputEventManager::findVirtualMap(char const *)" (?findVirtualMap@InputEventManager@@QAEPAUVirtualMapData@1@PBD@Z) referenced in function "public: static bool __cdecl ActionMap::createEventDescriptor(char const *,struct EventDescriptor *)" (?createEventDescriptor@ActionMap@@SA_NPBDPAUEventDescriptor@@@Z) C:UsersKhuzadiDownloadsTorque3D-masterMy ProjectsDraftedbuildFilesVisualStudio 2010projectsactionMap.obj
What in the world do I do?
About the author
#2
Convert it to .DAE and export the info. With luck, that will help.
Probably the issue?
Just guessing.
01/28/2014 (4:05 pm)
.obj model format is NOT supported by T3D at all.Convert it to .DAE and export the info. With luck, that will help.
Probably the issue?
Just guessing.
#3
C:\Torque3D-master\My Projects\Drafted\buildFiles\Link\VC2010.Debug.Win32\GMK DLL
In there actionMap is stored, check for yourself. Unfortunately, it's causing some weird problems.
I really need help, if you guys need me to upload the repo I can, if you don't know whats happening. Thanks all!
01/28/2014 (7:33 pm)
The problem is in buildgame, the object file (not .obj for 3d I believe).C:\Torque3D-master\My Projects\Drafted\buildFiles\Link\VC2010.Debug.Win32\GMK DLL
In there actionMap is stored, check for yourself. Unfortunately, it's causing some weird problems.
I really need help, if you guys need me to upload the repo I can, if you don't know whats happening. Thanks all!
#4
01/28/2014 (7:55 pm)
FYI, a .dae would not do anything.
#5
I had a similar error when the code for a class/function was missing. If you deleted something that could be the cause. On another slightly related note, I should have a functional MIT 3.5 GMK port up on github tomorrow. It still might be a little buggy, but most of the features seem to work.
01/29/2014 (1:14 am)
@raaI had a similar error when the code for a class/function was missing. If you deleted something that could be the cause. On another slightly related note, I should have a functional MIT 3.5 GMK port up on github tomorrow. It still might be a little buggy, but most of the features seem to work.
#6
If your done with your port anytime soon, please post the link here. That would help me and I can move on to implementing FXAA.
01/29/2014 (7:31 am)
I just need to know what is missing and what to fix. If you have a working version tomorrow then I might give up and just use yours. Otherwise, if any of you know what I should fix/change that would be great. I am also working on a port to MIT 3.5, and this was my last set of errors. Unfortunately, it looks like I won't finish my port.If your done with your port anytime soon, please post the link here. That would help me and I can move on to implementing FXAA.
#7
These are all in platform/input/event.cpp - So I'm guessing somehow platform/input/event.h or platform/platformInput.h isn't included in a module that it should be included in. Did your modifications include any new gui controls?
Let's break this down. Each of those errors contains enough information to get you started.
Here are many google hits for "debugging tutorial visual studio" that might help you pick up some insight. You're going to have to learn it some time - if we all die tomorrow who will you ask about this stuff?
01/29/2014 (8:28 am)
What is missing? The log tells you:Error 20 error LNK2019: unresolved external symbol "public: bool __thiscall InputEventManager::isRegisteredDevice(unsigned int)" Error 17 error LNK2019: unresolved external symbol "public: bool __thiscall InputEventManager::isRegisteredDeviceWithAttributes(char const *,unsigned int &,unsigned int &)" Error 19 error LNK2019: unresolved external symbol "public: char const * __thiscall InputEventManager::findVirtualMapDescFromCode(unsigned int)" Error 18 error LNK2019: unresolved external symbol "public: char const * __thiscall InputEventManager::getRegisteredDeviceName(unsigned int)" Error 16 error LNK2019: unresolved external symbol "public: struct InputEventManager::VirtualMapData * __thiscall InputEventManager::findVirtualMap(char const *)"
These are all in platform/input/event.cpp - So I'm guessing somehow platform/input/event.h or platform/platformInput.h isn't included in a module that it should be included in. Did your modifications include any new gui controls?
Let's break this down. Each of those errors contains enough information to get you started.
// What the problem is: Error 20 error LNK2019: unresolved external symbol // The cause of the problem: "public: bool __thiscall InputEventManager::isRegisteredDevice(unsigned int)" (?isRegisteredDevice@InputEventManager@@QAE_NI@Z) // The location of the problem: referenced in function "public: bool __thiscall ActionMap::processAction(struct InputEventInfo const *)" (?processAction@ActionMap@@QAE_NPBUInputEventInfo@@@Z) C:UsersKhuzadiDownloadsTorque3D-masterMy ProjectsDraftedbuildFilesVisualStudio 2010projectsactionMap.objThe thing to do is search your project for the missing symbol - in this case InputEventManager::isRegisteredDevice. Then, if you find it (as in this case - it is in fact defined) you search your project for the place where it is called - in this case ActionMap::processAction. Since it's an "unresolved external symbol" we know that somehow our compilation module isn't being told about the definition so we're probably missing an include. Start looking and have fun! This is the hardest part of adding other people's code to your own without understanding it, but it's definitely a trial by fire.
Here are many google hits for "debugging tutorial visual studio" that might help you pick up some insight. You're going to have to learn it some time - if we all die tomorrow who will you ask about this stuff?
#9
I'm sorry if I'm annoying you all, I've been trying to get better at coding and especially debugging. I'll look some more into the code, I just couldn't really understand the errors. I will look into the code and download alphaslime's repo. Also alphaslime, it might be wise to add GMK to the GUI... Just a thought
01/29/2014 (10:34 am)
Thanks Richard and alphaslime,I'm sorry if I'm annoying you all, I've been trying to get better at coding and especially debugging. I'll look some more into the code, I just couldn't really understand the errors. I will look into the code and download alphaslime's repo. Also alphaslime, it might be wise to add GMK to the GUI... Just a thought
#10
Its on the to-do list. I just had to get the thing to run before I worked on the GUI.
01/29/2014 (10:52 am)
@raaIts on the to-do list. I just had to get the thing to run before I worked on the GUI.
#11
01/29/2014 (12:42 pm)
When do you think it will be done?
#12
01/29/2014 (1:07 pm)
Not annoying - but you have to learn it if you're going to be working with code. Might as well start early. You won't always have someone else to turn to.
#13
01/29/2014 (11:33 pm)
Status Update: I have figured out how to merge the templates with the GMK example, but it will take a bit of time to make sure it all works correctly. I might have everything up and running tomorrow.
raa brubb