Hello,
I started a project call dll from Qt C++.
#-------------------------------------------------
#
# Project created by Qt5.4 at Windows 7 32bit
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = CallDll
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
LIBS += "C:/Qt-Lessons/CallDll/libzinnia.dll"
HEADERS += \
zinnia.h
#-------------------------------------------------
#
# Project created by Qt5.4 at Windows 7 32bit
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = CallDll
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
LIBS += "C:/Qt-Lessons/CallDll/libzinnia.dll"
HEADERS += \
zinnia.h
To copy to clipboard, switch view to plain text mode
#include <QCoreApplication>
#include <QDebug>
#include "zinnia.h"
int main(int argc, char *argv[])
{
zinnia::Recognizer *recognizer = zinnia::Recognizer::create();
if (!recognizer->open("c:/handwriting-zh_CN.model")) {
qDebug() << recognizer->what();
}
return a.exec();
}
#include <QCoreApplication>
#include <QDebug>
#include "zinnia.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
zinnia::Recognizer *recognizer = zinnia::Recognizer::create();
if (!recognizer->open("c:/handwriting-zh_CN.model")) {
qDebug() << recognizer->what();
}
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I also copied libzinnia.dll to my project, debug, release folders and add LIBS in .pro file
But when I build project, compiler gave errors :
undefined reference to ..........
How can I fix it?
Thanks
Bookmarks