I have two projects the first is c++ console application and the second is c++ CLR Empty project .I want to call function from the console and use it in CLR project .I tried to create header file , include it in CLR project and use #include "headername.h" and call the function render3d() but it gives me those linking errors .
Error 29 error LNK2028: unresolved token (0A000934) "void __cdecl render3d(void)" (?render3d@@$$FYAXXZ) referenced in function "private: void __clrcall DEMO::MainForm::AddAnimebutton_Click(class System::Object ^,class System::EventArgs ^)" (?AddAnimebutton_Click@MainForm@DEMO@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) E:\Graduation Project\CPP ARENA DEMO New Design\DEMO\DEMO\MainForm.obj DEMO
Error 30 error LNK2019: unresolved external symbol "void __cdecl render3d(void)" (?render3d@@$$FYAXXZ) referenced in function "private: void __clrcall DEMO::MainForm::AddAnimebutton_Click(class System::Object ^,class System::EventArgs ^)" (?AddAnimebutton_Click@MainForm@DEMO@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) E:\Graduation Project\CPP ARENA DEMO New Design\DEMO\DEMO\MainForm.obj DEMO
Error 31 error LNK1120: 2 unresolved externals E:\Graduation Project\CPP ARENA DEMO New Design\DEMO\Release\DEMO.exe DEMO