Sign in to follow this  
JohnHurt

[.net] win32 to .net linking troubles

Recommended Posts

Hi, I'm trying to write a tool for my game in C++ .net. It's a simple windows form app but I'm trying to access classes which are defined in my game engine code. The game engine is in a Win32 static library project. I've set up the engine library as a dependency of the Windows Form app, but I'm getting 4 linker errors when I try and declare an instance of a class from inside the engine library.
1>particle_ed.obj : error LNK2028: unresolved token (0A00000F) "public: __clrcall cMesh::~cMesh(void)" (??1cMesh@@$$FQAM@XZ) referenced in function "private: void __clrcall particle_ed::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@particle_ed@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>particle_ed.obj : error LNK2028: unresolved token (0A000010) "public: __clrcall cMesh::cMesh(void)" (??0cMesh@@$$FQAM@XZ) referenced in function "private: void __clrcall particle_ed::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@particle_ed@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>particle_ed.obj : error LNK2019: unresolved external symbol "public: __clrcall cMesh::~cMesh(void)" (??1cMesh@@$$FQAM@XZ) referenced in function "private: void __clrcall particle_ed::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@particle_ed@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>particle_ed.obj : error LNK2019: unresolved external symbol "public: __clrcall cMesh::cMesh(void)" (??0cMesh@@$$FQAM@XZ) referenced in function "private: void __clrcall particle_ed::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@particle_ed@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this