PDA

View Full Version : Can't compile any tutorial, error: undefined reference



dandelion
20th November 2010, 11:52
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

dandelion
21st November 2010, 09:38
Solved.

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

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