Hi all,
thank you for your help but i found a solution by myself. I explain for future leaners. I made three mistake:
- I change the header and cpp files name to "MathLibrary-William" whithout changing these very first lines of code:
#ifdef MATHLIBRARY_EXPORTS
#define MATHLIBRARY_API __declspec(dllexport)
#else
#define MATHLIBRARY_API __declspec(dllimport)
#endif
So the precompiler didn't find
__declspec(dllexport)
directive and couldn't generate .lib file;
- When i created "MathLibrary-William.h" and "MathLibrary-William.cpp" files, I didn't add it in my project correct. We must click to File->Move to->"Project name";
- #define directive can't have a - in their name.
I hope these errors can help someone.