[solved] Qt Creator LNK2019 Error
Verfasst: 22. Juli 2013 09:53
Hallo,
ich habe nur eine banale Frage bezüglich eines in Qt Creator ausgelösten LNK2019 Linking-Errors!
Dieser tritt nach einer frischen Installation von "Qt 5.1.0 for Windows 64-bit (VS 2012, 525 MB)" auf.
Neben QWidget inkludiere ich noch QString sowie QtMultimedia/QAudioDeviceInfo in eine Headerdatei!
Errors:
audioplayer.obj
error: LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __cdecl QAudioDeviceInfo::QAudioDeviceInfo(class QAudioDeviceInfo const &)" (__imp_??0QAudioDeviceInfo@@QEAA@AEBV0@@Z)" in Funktion ""private: void __cdecl QList<class QAudioDeviceInfo>::node_copy(struct QList<class QAudioDeviceInfo>::Node *,struct QList<class QAudioDeviceInfo>::Node *,struct QList<class QAudioDeviceInfo>::Node *)" (?node_copy@?$QList@VQAudioDeviceInfo@@@@AEAAXPEAUNode@1@00@Z)".
audioplayer.obj
error: LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __cdecl QAudioDeviceInfo::~QAudioDeviceInfo(void)" (__imp_??1QAudioDeviceInfo@@QEAA@XZ)" in Funktion ""public: void * __cdecl QAudioDeviceInfo::`scalar deleting destructor'(unsigned int)" (??_GQAudioDeviceInfo@@QEAAPEAXI@Z)".
audioplayer.obj
error: LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: class QString __cdecl QAudioDeviceInfo::deviceName(void)const " (__imp_?deviceName@QAudioDeviceInfo@@QEBA?AVQString@@XZ)" in Funktion ""private: void __cdecl AudioPlayer::updateDevices(void)" (?updateDevices@AudioPlayer@@AEAAXXZ)".
audioplayer.obj
error: LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static class QList<class QAudioDeviceInfo> __cdecl QAudioDeviceInfo::availableDevices(enum QAudio::Mode)" (__imp_?availableDevices@QAudioDeviceInfo@@SA?AV?$QList@VQAudioDeviceInfo@@@@W4Mode@QAudio@@@Z)" in Funktion ""private: void __cdecl AudioPlayer::updateDevices(void)" (?updateDevices@AudioPlayer@@AEAAXXZ)".
debug\AudioPlayer.exe
error: LNK1120: 4 nicht aufgelöste Externe
[AudioPlayer.pro]
Wie kann man das fixen?
ich habe nur eine banale Frage bezüglich eines in Qt Creator ausgelösten LNK2019 Linking-Errors!
Dieser tritt nach einer frischen Installation von "Qt 5.1.0 for Windows 64-bit (VS 2012, 525 MB)" auf.
Neben QWidget inkludiere ich noch QString sowie QtMultimedia/QAudioDeviceInfo in eine Headerdatei!
Errors:
audioplayer.obj
audioplayer.obj
audioplayer.obj
audioplayer.obj
debug\AudioPlayer.exe
[AudioPlayer.pro]
Code: Alles auswählen
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-21T19:19:15
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = AudioPlayer
TEMPLATE = app
SOURCES += main.cpp\
audioplayer.cpp
HEADERS += audioplayer.h
FORMS += audioplayer.ui