I am using gcc 3.4.2 mingw/special and have successfully compiled the library. However, when I attempt to build the dll I get the following:
g++ -g -pipe -DCRYPTOPP_IMPORTS -c 3way.cpp -o 3way.import.o In file included from simple.h:9, from pch.h:7, from 3way.cpp:4: cryptlib.h:271: error: function `std::string CryptoPP::NameValuePairs::GetValueNames() const' definition is marked dllimport. cryptlib.h:277: error: function `bool CryptoPP::NameValuePairs::GetIntValue(const char*, int&) const' definition is marked dllimport. cryptlib.h:281: error: function `int CryptoPP::NameValuePairs::GetIntValueWithDefault(const char*, int) const' definition is marked dllimport. cryptlib.h:285: error: function `static void CryptoPP::NameValuePairs::ThrowIfTypeMismatch(const char*, const std::type_info&, const std::type_info&)' definition is marked dllimport. cryptlib.h:295: error: function `void CryptoPP::NameValuePairs::GetRequiredIntParameter(const char*, const char*, int&) const' definition is marked dllimport. I do wind up with a cryptopp.dll, but the program that is suppose to build with it fails. Attempting to build the dlltest.exe after build the dll fails with the same result. Any ideas?
