CRYPTOPP_DLL
> In a message dated 11/11/2005 08:50:18 GMT Standard Time,
> Cornel.M...@echotech.ch writes:
>
> CRYPTOPP_DLL
>
> Hi, thank you for the reply.
>
> Ok, i checked and it wasnt there like you said, i done exactly what
> you said adding CRYPTOPP_DLL just after class, and checked a few other
> .h files to make sure i had done it correctly.
At this step you should recompile your CryptoPP library.
Changing only the *.h files will give you linker errors.
> Now i get a new linker error, so it must have something to do with
> this, here is my new error.
>
> testDlg.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: virtual __thiscall
> CryptoPP::Base64Encoder::~Base64Encoder(void)"
> (__imp_??1Base64Encoder@CryptoPP@@UAE@XZ
> <mailto:__imp_??1Base64Encoder@CryptoPP@@UAE@XZ>) referenced in
> function "public: void __thiscall CtestDlg::OnBnClickedGenRsa(void)"
> (?OnBnClickedGenRsa@CtestDlg@@QAEXXZ
> <mailto:?OnBnClickedGenRsa@CtestDlg@@QAEXXZ>)
> testDlg.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall
> CryptoPP::Base64Encoder::Base64Encoder(class
> CryptoPP::BufferedTransformation *,bool,int)"
> (__imp_??0Base64Encoder@CryptoPP@@QAE@PAVBufferedTransformation@1@_NH@Z
> <mailto:__imp_??0Base64Encoder@CryptoPP@@QAE@PAVBufferedTransformation@1@_NH@Z>)
> referenced in function "public: void __thiscall
> CtestDlg::OnBnClickedGenRsa(void)"
> (?OnBnClickedGenRsa@CtestDlg@@QAEXXZ
> <mailto:?OnBnClickedGenRsa@CtestDlg@@QAEXXZ>)
> Debug/test.exe : fatal error LNK1120: 2 unresolved externals
As I see the constructor and destructor of the class Base64Encoder is
missing.
Take a look a the file base64.h
Class Base64Encoder should be declared as:
class CRYPTOPP_DLL Base64Encoder : public SimpleProxyFilter
{
...
}
If not, change and recompile the library.
Now it should probabily work... :)
Check if base64 are exported from your CryptoPP library.
Check the file base64.h to ensure that the classes Base64Encoder and
Base64Decoder have CRYPTOPP_DLL export directive.
If not add it and recompile the library.