Results 1 to 5 of 5

Thread: Help with undefined reference in Windows with mingw32

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Thanks
    24
    Thanked 17 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Help with undefined reference in Windows with mingw32

    Hi,

    Thanks for your reply.

    I tried that and still does not work.

    I also try to build both libraries on release but I get the same result

    This is the first error:
    Qt Code:
    1. ./release\plots.o:plots.cpp:(.text+0x13f5): undefined reference to `calcDialog::calcDialog(QWidget*)'
    To copy to clipboard, switch view to plain text mode 

    Indeed the code in plots.cpp uses calcDialog like:
    Qt Code:
    1. #include <calcdialog.h>
    2. ....
    3. calcDialog calc;
    4. calc.setDatabase(dataBase);
    5. calc.setCurrentDisplay(index.data().toFloat());
    6. calc.exec();
    7. ....
    To copy to clipboard, switch view to plain text mode 

    In the PRO I have the include path of calculator:
    Qt Code:
    1. INCLUDEPATH += ../../../plugins/interfaces ../../designer/impwidgets ../../designer/impwidgets/widgets/calculator
    To copy to clipboard, switch view to plain text mode 

    So, I really don't know what is wrong because in Linux it works ok with:
    Qt Code:
    1. unix:LIBS += -L/home/cquiros/data/projects/tools/crossimpact -limpwidgetsplugin
    To copy to clipboard, switch view to plain text mode 
    Many thanks,
    Carlos.
    Last edited by qlands; 22nd March 2012 at 07:06.

Similar Threads

  1. undefined reference for qt creator in windows
    By morteza in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2011, 19:19
  2. Undefined reference
    By eekhoorn12 in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2011, 15:45
  3. undefined reference
    By digidas in forum Newbie
    Replies: 9
    Last Post: 19th May 2010, 13:04
  4. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 08:34
  5. Undefined reference
    By Salazaar in forum Newbie
    Replies: 12
    Last Post: 23rd May 2007, 10:21

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
  •  
Qt is a trademark of The Qt Company.