[Qt-interest] (vista, visual studio 2010) can't compile a simple project

David Ching dc at remove-this.dcsoft.com
Wed Jun 3 00:00:57 CEST 2009


"lolveley" <lolveley at yahoo.fr> wrote in message 
news:4A252323.3030000 at yahoo.fr...
> hello,
>
> I'm trying visual studio 2010

> and here is the error:
> ***************************************************************
> 1>------ Build started: Project: test_cpp_1, Configuration: Debug 
> Win32 ------
> 1>Build started 02/06/2009 14:48:36.
> 1>IsProjectFileNewer:
> 1>Skipping target "IsProjectFileNewer" because all output files are 
> up-to-date with respect to the input files.
> 1>_PrepareForBuild:
> 1>  Touching "Debug\lastbuild.timestamp".
> 1>ClCompile:
> 1>  Skipping task because its outputs are up-to-date.
> 1>fichier_test.obj : error LNK2019: unresolved external symbol 
> "__declspec(dllimport) public: virtual __thiscall 
> QApplication::~QApplication(void)" (__imp_??1QApplication@@UAE at XZ)

...

You need to link with QtCore4.lib and QtGui4.lib.

I highly recommend you use either VS2005 or VS2008 and then install the Qt 
plugin for these, they will help create projects for you with all the proper 
libraries set up.

-- David




More information about the Qt-interest-old mailing list