Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compile Error: undefined reference to QextWinEventNotifier
Forum Updated to NodeBB v4.3 + New Features

Compile Error: undefined reference to QextWinEventNotifier

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    princelelouch94
    wrote on last edited by
    #1

    i have followed the steps here to solve problems with "qwineventnotifier_p.h"

    https://code.google.com/p/qextserialport/issues/detail?id=105

    after that i got 2 another errors: undefined reference to QextWinEventNotifier

    Here is my *.pro file (sources, headers, forms omitted)

    @include(C:/QtSDK/qextserialport-1.2rc/src/qextserialport.pri)

    QT += core gui
    QT += sql

    DEFINES += NCREPORT_IMPORT

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    LIBS += -L "C:/Program Files/NCReport/2.11.0.MinGW.Qt5.1.1.eval/lib" -lncreport2
    INCLUDEPATH += "C:/Program Files/NCReport/2.11.0.MinGW.Qt5.1.1.eval/include"

    TARGET = DBMS
    TEMPLATE = app

    CONFIG += qt
    QT += network xml

    RESOURCES +=
    resources.qrc@

    AND HERES MY COMPILE OUTPUT

    @14:04:41: Running build steps for project DBMS...
    14:04:41: Configuration unchanged, skipping qmake step.
    14:04:41: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
    C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Release
    mingw32-make.exe[1]: Entering directory C:/Users/ACER/Desktop/ISKUL/STI/7' g++ -Wl,-s -mthreads -Wl,-subsystem,windows -o release\DBMS.exe object_script.DBMS.Release -L"c:\QtSDK\Desktop\Qt\4.8.1\mingw\lib" -lmingw32 -lqtmain -lsetupapi -ladvapi32 -luser32 -L "C:/Program Files/NCReport/2.11.0.MinGW.Qt5.1.1.eval/lib" -lncreport2 -lQtSql4 -lQtXml4 -lQtGui4 -lQtNetwork4 -lQtCore4 mingw32-make.exe[1]: Leaving directory C:/Users/ACER/Desktop/ISKUL/STI/7'
    ./release\qextserialport_win.o:qextserialport_win.cpp:(.text+0x56d): undefined reference to QextWinEventNotifier::setEnabled(bool)' ./release\qextserialport_win.o:qextserialport_win.cpp:(.text+0xb41): undefined reference to QextWinEventNotifier::QextWinEventNotifier(void*, QObject*)'
    collect2: ld returned 1 exit status
    mingw32-make.exe[1]: *** [release\DBMS.exe] Error 1
    mingw32-make.exe: *** [release] Error 2
    14:04:45: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    Error while building project DBMS (target: Desktop)
    When executing build step 'Make'@

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You have another problem first, you are mixing Qt 4.8.1 and Qt 5.1.1 which is a bad idea.
      So should rather build your program with Qt 5.1.1 which includes also QSerialPort so you won't need QextSerialPort

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved