[EMAIL PROTECTED] wrote:

In a message dated 11/11/2005 08:50:18 GMT Standard Time, [EMAIL PROTECTED] 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)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]@@[EMAIL PROTECTED]>) referenced in function "public: void __thiscall CtestDlg::OnBnClickedGenRsa(void)" ([EMAIL PROTECTED]@@QAEXXZ <mailto:[EMAIL PROTECTED]@@QAEXXZ>) testDlg.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CryptoPP::Base64Encoder::Base64Encoder(class CryptoPP::BufferedTransformation *,bool,int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@Z <mailto:[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@Z>) referenced in function "public: void __thiscall CtestDlg::OnBnClickedGenRsa(void)" ([EMAIL PROTECTED]@@QAEXXZ <mailto:[EMAIL PROTECTED]@@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... :)

I would be very gratefull if you could be of any further assistance, as i realy need to encode/decode base64, and this is the only part of the library that will not work. Thank you for your time.


Reply via email to