[Qt-interest] Spectrum analyser build error with MSVC

Gino ginovh2002 at yahoo.com
Sat Jun 19 09:59:00 CEST 2010


Hello,

in the 4.6.3 release there is the new spectrum analyser example.
When I try to compile I get link error ( see below ).

My setup is:
windows vista 32 bit
visual studio 2008 standaard.
I configured qt with : configure.exe -static  -debug-and-release -platform 
win32-msvc2008
I modified
S:\qt-everywhere-opensource-src-4.6.3\mkspecs\win32-msvc2008\qmake.conf to 
build static.
QMAKE_CFLAGS_RELEASE    = -O2 -MT
QMAKE_CFLAGS_DEBUG      = -Zi -MTd
( notice the -MT )
I only build sub-src and sub-tools and build the example later on manually 
from command line with:
qmake -tp vc spectrum.pro
open the project in visual studio and build solution

I don't think it has to do with the fact that I try to link with a static 
lib.
It seems like it can't find the objects it just compiled, which is strange. 
Because FFTRealWrapper constructor code for sure got compiled.
I also have this problem with other examples. I didn't have this with 
versions berfore 4.6.3.

Any idea what is wrong? Did something change to the generation of MSVC 
project files ?

Thanks,

Gino

1>QtGuid.lib(qapplication.obj) : warning LNK4217: locally defined symbol
?qt_call_post_routines@@YAXXZ (void __cdecl qt_call_post_routines(void))
imported in function "public: virtual __thiscall
QApplication::~QApplication(void)" (??1QApplication@@UAE at XZ)
1>QtGuid.lib(qwhatsthis.obj) : warning LNK4217: locally defined symbol
?qDeleteInEventHandler@@YAXPAVQObject@@@Z (void __cdecl
qDeleteInEventHandler(class QObject *)) imported in function "public: static
void __cdecl QWhatsThis::hideText(void)" (?hideText at QWhatsThis@@SAXXZ)
1>spectrumanalyser.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
FFTRealWrapper::FFTRealWrapper(void)" (__imp_??0FFTRealWrapper@@QAE at XZ)
referenced in function "public: __thiscall
SpectrumAnalyserThread::SpectrumAnalyserThread(class QObject *)"
(??0SpectrumAnalyserThread@@QAE at PAVQObject@@@Z)
1>spectrumanalyser.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
FFTRealWrapper::~FFTRealWrapper(void)" (__imp_??1FFTRealWrapper@@QAE at XZ)
referenced in function "public: void * __thiscall FFTRealWrapper::`scalar
deleting destructor'(unsigned int)" (??_GFFTRealWrapper@@QAEPAXI at Z)
1>spectrumanalyser.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
FFTRealWrapper::calculateFFT(float * const,float const * const)"
(__imp_?calculateFFT at FFTRealWrapper@@QAEXQAMQBM at Z) referenced in function
"public: void __thiscall SpectrumAnalyserThread::calculateSpectrum(class
QByteArray const &,int,int)"
(?calculateSpectrum at SpectrumAnalyserThread@@QAEXABVQByteArray@@HH at Z)
1>..\bin\spectrum.exe : fatal error LNK1120: 3 unresolved externals




More information about the Qt-interest-old mailing list