The very same error occurs when you try to build the dll project with Visual Studio 2005 (sources from cvs).
Regards, Marko -----Original Message----- From: Matthew Witherwax [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 5:44 AM To: [email protected] Subject: Error when running make dll under mingw 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?
