Hello,
I have cryptopp 5.3.0 and try to run it from Qt Creator 2.1.0 (Qt 4.7.2).
I have cryptopp.dll and cryptopp.lib downloaded from Crypto++ site.
Any attempt to run any code from cryptopp library results in LINKER error (LNK2001).
I will appreciate any help (like example or hint or link).
The .pro file is:
#-------------------------------------------------
#
# Project created by QtCreator 2011-08-11T15:29:52
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = Testik
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
LIBS += -Lcryptopp
#-------------------------------------------------
#
# Project created by QtCreator 2011-08-11T15:29:52
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = Testik
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
LIBS += -Lcryptopp
To copy to clipboard, switch view to plain text mode
And my main.cpp (there is no more files):
#include <iostream>
#define CRYPTOPP_DEFAULT_NO_DLL
#include <cryptopp/dll.h>
#ifdef CRYPTOPP_WIN32_AVAILABLE
#include <windows.h>
#endif
#include <cryptopp/md5.h>
int main(int argc, char *argv[])
{
byte digest[ CryptoPP::MD5::DIGESTSIZE ];
CryptoPP::HexEncoder encoder;
return 0;
}
#include <iostream>
#define CRYPTOPP_DEFAULT_NO_DLL
#include <cryptopp/dll.h>
#ifdef CRYPTOPP_WIN32_AVAILABLE
#include <windows.h>
#endif
#include <cryptopp/md5.h>
int main(int argc, char *argv[])
{
byte digest[ CryptoPP::MD5::DIGESTSIZE ];
CryptoPP::HexEncoder encoder;
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks