I have a static library project that I am trying to use in a Win32 form project. I am using visual studio and C++. Here is what I have done:
- Added the library project to the solution.
- Included the library project's header in stdafx.h of the form project (#include "..\libproj\libProj.lib")
- Linked the static library file itself using pragma (#pragma comment(lib,"..\libproj\Release\libProj.lib")
- Added a reference to the library project in "Common Properties > Framework and References".
But when I try and compile the form application I get numerous unresolved external symbol errors. I just don't know what I am doing wrong. Currently I am getting round this problem by adding the .cpp file of the library project to the windows forms project. Any help would be greatly appreciated!