Results 1 to 2 of 2

Thread: Can't compile any tutorial, error: undefined reference

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Can't compile any tutorial, error: undefined reference

    Hi,

    I can't compile any tutorial.

    I just downloaded and installed the last version of QT SDK for Windows (4.7.0).

    When I try to build any tutorial I get multiple errors like this:

    undefined reference to _imp__ZN7.... in all lines of code using QT classes.

    I have to say that I have installed Visual Studio 2003 in my computer, but I use MinGW to compile the QT programs.


    I modified the following project build settings to override the values that have been put in the default installation of QT:

    INCLUDE:
    before:
    C:\Archivos de programa\Microsoft Visual Studio .NET 2003\SDK\v1.1\include
    after:
    C:\Qt\2010.05\qt\include\Qt
    LIB:
    before
    C:\Archivos de programa\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
    after:
    C:\Qt\2010.05\qt\lib

    but i get the same error.

    Can anyone help me?

    Thanks in advance,

    Dandelion

  2. #2
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can't compile any tutorial, error: undefined reference

    Solved.

    Just had to comment out this line in the project file:

    # symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)

Similar Threads

  1. Getting Undefined Reference Error
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2009, 02:12
  2. Replies: 0
    Last Post: 9th April 2009, 06:12
  3. Error - undefined reference qMain
    By tpf80 in forum Newbie
    Replies: 4
    Last Post: 23rd February 2009, 07:54
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  5. Undefined Reference error!!!
    By Kapil in forum Newbie
    Replies: 25
    Last Post: 28th March 2006, 12:03

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.