Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

undefined reference to library after static compiling qt

$
0
0
Hey, i compiled qt for windows static wothout any error and if i compile and execute a programm with qt creator without libs it is working. But if i want to use the Qt libs and include them, it says i.e QCoreApplication was not declared. After adding them in the*.pro file it says undefined reference to them. pro file #————————————————————————- # Project created by QtCreator 2013-12-20T10:42:53 # #————————————————————————- QT += core QT -= gui TARGET = untitled1 CONFIG += console CONFIG -= app_bundle TEMPLATE = app LIBS += -LC:\qt-everywhere-opensource-src-5.2.0_14Versuch\qtbase\lib -lQt5Core INCLUDEPATH += C:\qt-everywhere-opensource-src-5.2.0_14Versuch\qtbase\include\QtCore SOURCES += main.cpp main.cpp #include <QCoreApplication> using namespace std; int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); return a.exec(); } Can anybody help me?

Viewing all articles
Browse latest Browse all 13965

Trending Articles