The error is to use hardcoded __declspec(dllexport)

When you import the library you have to pass __declspec(dllimport).

Read here for information.