Results 1 to 2 of 2

Thread: Error in NCReport for Qt 5.1.1 minGW

  1. #1
    Join Date
    Jul 2013
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Error in NCReport for Qt 5.1.1 minGW

    after a long wait NCreport release a compatible version for Qt 5.1.1 minGW

    every thing work perfectyl but after implementation my programme can’t start

    her is my code .pro file
    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2013-09-17T18:17:24
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui sql xml printsupport
    8.  
    9. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    10.  
    11. TARGET = testncreport
    12. TEMPLATE = app
    13.  
    14. INCLUDEPATH += "E:\apprendreQt\gestionstock6\includes\include"
    15.  
    16. SOURCES += main.cpp\
    17. mainwindow.cpp
    18.  
    19. HEADERS += mainwindow.h
    20.  
    21. FORMS += mainwindow.ui
    22.  
    23.  
    24. LIBS += "-LE:\apprendreQt\gestionstock6\includes\lib -lNCReport2"
    To copy to clipboard, switch view to plain text mode 

    her is the mainwindow.cpp
    Qt Code:
    1. #include "mainwindow.h"
    2. #include "ui_mainwindow.h"
    3. #include "ncreport.h"
    4. #include "ncreportpreviewoutput.h"
    5. #include "ncreportoutput.h"
    6. #include "ncreportpreviewwindow.h"
    7.  
    8. MainWindow::MainWindow(QWidget *parent) :
    9. QMainWindow(parent),
    10. ui(new Ui::MainWindow)
    11. {
    12. ui->setupUi(this);
    13.  
    14. NCReport *report = new NCReport(this);
    15. report->reset(true);
    16. report->setReportFile("E:\apprendreQt\gestionstock6\includes\reports\test.xml");
    17. report->runReportToPrinter();
    18.  
    19. }
    20.  
    21. MainWindow::~MainWindow()
    22. {
    23. delete ui;
    24. }
    To copy to clipboard, switch view to plain text mode 

    after compiling i get this error
    C:\test\testncreport\mainwindow.cpp:14: error: undefined reference to `_imp___ZN8NCReportC1EP7QObject'
    C:\test\testncreport\mainwindow.cpp:15: error: undefined reference to `_imp___ZN8NCReport5resetEb'
    C:\test\testncreport\mainwindow.cpp:15: error: undefined reference to `_imp___ZN8NCReport5resetEb'
    C:\test\testncreport\mainwindow.cpp:17: error: undefined reference to `_imp___ZN8NCReport18runReportToPrinterEibP7QWidge tRK7QString'
    collect2.exe:-1: error: error: ld returned 1 exit status

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Error in NCReport for Qt 5.1.1 minGW

    Read the answer in your thread on another forum.

Similar Threads

  1. Replies: 3
    Last Post: 3rd July 2013, 21:58
  2. Compile error in Qt 4.7.3 with mingw
    By zither in forum Installation and Deployment
    Replies: 0
    Last Post: 4th June 2011, 20:13
  3. Build ncreport using mingw qt
    By rivci in forum Qt Programming
    Replies: 0
    Last Post: 5th April 2011, 13:57
  4. debug error eclipse+qt mingw
    By sakthi in forum Qt Programming
    Replies: 0
    Last Post: 19th January 2008, 04:44
  5. QtNetwork error by compile MingW qt4.2
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2006, 15:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.