[FIXED] Modifying Irrlicht, Unresolved external symbol
Posted: Sun Jan 15, 2012 4:57 am
I'm interesting in adding functionality to the Irrlicht code to get the Kinect working easier (Microsoft Official Kinect SDK Beta 2)
However, I'm not used to using Visual Studio 2010 and my C++ skills are a little rusty. 2010 forces a Project Conversion process, but everything seems to be working before I started on this new class (CIrrDeviceKinect.cpp)
From my compiling/building/linking process for Irrlicht, I see the output below, and a CIrrDeviceKinect.obj
During the Build/link process for my code, I see that CIrrDevice isn't being found in Irrlicht.lib (while other functions like createDevice() are found)
When I try to build my code, I get a
If I DON'T use an extra .cpp file and put everything inside IEventReceiver.h, then there is no erorr
Code I added is
IEventReceiver.h, inside the namespace irr at the end
New CIrrDeviceKinect.cpp
However, I'm not used to using Visual Studio 2010 and my C++ skills are a little rusty. 2010 forces a Project Conversion process, but everything seems to be working before I started on this new class (CIrrDeviceKinect.cpp)
From my compiling/building/linking process for Irrlicht, I see the output below, and a CIrrDeviceKinect.obj
Code: Select all
1> Generating Code...
1> Compiling...
...
1> CIrrDeviceKinect.cpp
...
1> Starting pass 2
...
1> CIrrDeviceKinect.obj
...
Code: Select all
2> Searching C:\Users\vtakng\Documents\git\irrlicht-x64-kinect\lib\Win64-visualstudio\Irrlicht.lib:
2> Found __imp_createDevice
2> Referenced in main.obj
2> Loaded Irrlicht.lib(Irrlicht.dll)
2> Found __IMPORT_DESCRIPTOR_Irrlicht
2> Referenced in Irrlicht.lib(Irrlicht.dll)
2> Loaded Irrlicht.lib(Irrlicht.dll)
2> Found __NULL_IMPORT_DESCRIPTOR
2> Referenced in Irrlicht.lib(Irrlicht.dll)
2> Loaded Irrlicht.lib(Irrlicht.dll)
2> Found Irrlicht_NULL_THUNK_DATA
2> Referenced in Irrlicht.lib(Irrlicht.dll)
2> Loaded Irrlicht.lib(Irrlicht.dll)
Code: Select all
2>main.obj : error LNK2019: unresolved external symbol "public: __cdecl irr::CIrrDeviceKinect::CIrrDeviceKinect(void)" (??0CIrrDeviceKinect@irr@@QEAA@XZ) referenced in function main
2>..\..\bin\Win64-VisualStudio\19.MouseAndJoystick.exe : fatal error LNK1120: 1 unresolved externals
Code I added is
IEventReceiver.h, inside the namespace irr at the end
Code: Select all
class CIrrDeviceKinect
{
public:
//CIrrDeviceKinect(int id, irr::IrrlichtDevice* p, DWORD flags);
CIrrDeviceKinect();
~CIrrDeviceKinect(){}
};
Code: Select all
namespace irr
{
CIrrDeviceKinect::CIrrDeviceKinect()
{
}
}