QT 4.8.2 as Static library for Windows CE



  • Hi all, I have built QT 4.8.2 as Static Library, all is done well, but If I try to use those on my VC2008 project I have the following errors. If I use DLL version all is working. I'm going crazy ! I have read all the tutorials, I have set the necessary optiond /MT /MTd .... I have problems only with static compilation of my project (QT static compilation OK). Can someone tell me where I'm wrong?

    Errore 1 error LNK2001: simbolo esterno "private: static class QTextCodec * QString::codecForCStrings" (?codecForCStrings@QString@@0PAVQTextCodec@@A) non risolto AppCFG.obj SNFUN2*
    Errore 2 error LNK2001: simbolo esterno "private: static class QTextCodec * QString::codecForCStrings" (?codecForCStrings@QString@@0PAVQTextCodec@@A) non risolto AppStrings.obj SNFUN2
    Errore 3 error LNK2001: simbolo esterno "private: static class QTextCodec * QString::codecForCStrings" (?codecForCStrings@QString@@0PAVQTextCodec@@A) non risolto ComsCFG.obj SNFUN2
    Errore 4 error LNK2001: simbolo esterno "private: static class QTextCodec * QString::codecForCStrings" (?codecForCStrings@QString@@0PAVQTextCodec@@A) non risolto HeaderCFG.obj SNFUN2
    Errore 5 error LNK2001: simbolo esterno "private: static struct QString::Data QString::shared_null" (?shared_null@QString@@0UData@1@A) non risolto snfun2.obj SNFUN2
    Errore 7 error LNK2001: simbolo esterno "public: static struct QMetaObject const QMainWindow::staticMetaObject" (?staticMetaObject@QMainWindow@@2UQMetaObject@@B) non risolto moc_snfun2.obj SNFUN2
    Errore 6 error LNK2001: simbolo esterno "public: static struct QMetaObject const QObject::staticMetaObject" (?staticMetaObject@QObject@@2UQMetaObject@@B) non risolto snfun2.obj SNFUN2
    Errore 8 error LNK2019: riferimento al simbolo esterno WinMain non risolto nella funzione WinMainCRTStartup corelibc.lib SNFUN2
    Errore 9 fatal error LNK1120: 5 esterni non risolti C:\Documents and Settings\User1\Desktop\GSE\SNFUN2_QT\AdvTPC66ST SNFUN2

    Tank you very much to everyone


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.