具体错误是:
LNK1181: cannot open input file 'sqlite3.lib'
在使用MSVC comandline批处理编译时,所有内容都在编译和连接正常:
cl /MTd /EHsc /I "C:\Qt\5.5\msvc2013\include" /Ox ^
C:\Qt\5.5\msvc2013\lib\Qt5Widgets.lib C:\Qt\5.5\msvc2013\lib\Qt5Core.lib C:\Qt\5.5\msvc2013\lib\Qt5Gui.lib Lib\teVirtualMIDI32.lib Lib\sqlite3.lib ^
Source\main.cpp Source\BasePort.cpp Source\PortContainer.cpp Source\BaseSql.cpp
但是现在我必须使用MOC进行UI连接,所以我已经转移到了Qt Creator。
继承人.pro事情:
#-------------------------------------------------
#
# Project created by QtCreator 2015-12-23T15:49:00
#
#-------------------------------------------------
QT += core gui widgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = MidiMod
TEMPLATE = app
SOURCES += main.cpp \
BasePort.cpp \
BaseSql.cpp \
PortContainer.cpp
HEADERS += \
BasePort.hpp \
BaseSql.hpp \
PortContainer.hpp \
SetupUi.hpp \
sqlite3.h \
teVirtualMIDI.h
FORMS += \
errormsg.ui \
main.ui
LIBS += \
teVirtualMIDI32.lib \
sqlite3.lib
DISTFILES += \
sqlite3.dll \
修改
现在我也得到了LNK1181: cannot open input file 'teVirtualMIDI32.lib'