I'm using WinXP with MSYS/Mingw gcc 3.4.1. Crypto++ 5.2 6/29/2004. I'm trying to build a dll version of the library and I get dllimport errors. Is there a fix for this?

Thanks

Chris

Here is the build output:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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.
d:\opt\chinook\toolchain\gcc\bin\make.exe: *** [3way.import.o] Error 1




Reply via email to