I am trying to include shapelib in an existing solution in MSVS 2010. However, I'm getting the following errors for each function call from shapelib:
error LNK2001: unresolved external symbol "extern "C" void __clrcall SHPDestroyObject(struct SHPObject *)" (?SHPDestroyObject@@$$J0YMXPEAUSHPObject@@@Z) *.obj
So far what I've done was include the "shapefil.h" file in the *.cpp file (the same file name which gives the error for the *.obj). Also, I've added
$(SolutionDir)$(Platform)\$(Configuration)\shapelib.lib
to Project->Properties->Configuration Properties->Linker->Input->Additional Dependencies. What should I do to fix this issue? I'm fairly new including external libraries so any help would be appreciated.