Results 1 to 7 of 7

Thread: "Warnings" with NMake and MSVC2008

  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default "Warnings" with NMake and MSVC2008

    Is it normal to see a few "Warnings" when building Qt with MSVC2008?

    Do "warnings" mean that that particular piece of Qt failed to build? Or can I ignore them?


    "Unreferenced Formal Parameter"

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: "Warnings" with NMake and MSVC2008

    You can ignore them. They occur because of something like that:
    Qt Code:
    1. void MyClass::someFunction(int parameter, bool isItTrue)
    2. {
    3. // I do fancy stuff here, but I don't use parameter or isItTrue
    4. }
    To copy to clipboard, switch view to plain text mode 
    because you don't use the parameters the compiler isforms you. To avoid the Warning you can use:
    Qt Code:
    1. void MyClass::someFunction(int parameter, bool isItTrue)
    2. {
    3. Q_UNUSED(parameter)
    4. Q_UNUSED(isItTrue)
    5. // I do fancy stuff here
    6. }
    To copy to clipboard, switch view to plain text mode 
    or
    Qt Code:
    1. void MyClass::someFunction(int /*parameter*/, bool /*isItTrue*/)
    2. {
    3. // I do fancy stuff here
    4. }
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: "Warnings" with NMake and MSVC2008

    This isn't normal:

    Creating library ..\..\..\..\lib\QtWebKitd4.lib and object ..\..\..\..\lib\Qt
    WebKitd4.exp
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual struct QMetaObject const * __thiscall WebCore::FormDataIODevice::metaObjec
    t(void)const " (?metaObject@FormDataIODevice@WebCore@@UBEPBUQMeta Object@@XZ)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual void * __thiscall WebCore::FormDataIODevice::qt_metacast(char const *)" (?
    qt_metacast@FormDataIODevice@WebCore@@UAEPAXPBD@Z)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual int __thiscall WebCore::FormDataIODevice::qt_metacall(enum QMetaObject::Ca
    ll,int,void * *)" (?qt_metacall@FormDataIODevice@WebCore@@UAEHW4Call @QMetaObject
    @@HPAPAX@Z)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual struct QMetaObject const * __thiscall WebCore::QNetworkReplyHandler::metaO
    bject(void)const " (?metaObject@QNetworkReplyHandler@WebCore@@UBEPBUQ MetaObject@
    @XZ)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual void * __thiscall WebCore::QNetworkReplyHandler::qt_metacast(char const *)
    " (?qt_metacast@QNetworkReplyHandler@WebCore@@UAEPAX PBD@Z)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual int __thiscall WebCore::QNetworkReplyHandler::qt_metacall(enum QMetaObject
    ::Call,int,void * *)" (?qt_metacall@QNetworkReplyHandler@WebCore@@UAEHW4 Call@QMe
    taObject@@HPAPAX@Z)
    QNetworkReplyHandler.obj : error LNK2019: unresolved external symbol "protected:
    void __thiscall WebCore::QNetworkReplyHandler:rocessQueuedItems(void)" (?proc
    essQueuedItems@QNetworkReplyHandler@WebCore@@IAEXX Z) referenced in function "pub
    lic: void __thiscall WebCore::QNetworkReplyHandler::setLoadMode(enum WebCore::QN
    etworkReplyHandler::LoadMode)" (?setLoadMode@QNetworkReplyHandler@WebCore@@QAEXW
    4LoadMode@12@@Z)
    FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol "protected:
    void __thiscall QWebPage::unsupportedContent(class QNetworkReply *)" (?unsupport
    edContent@QWebPage@@IAEXPAVQNetworkReply@@@Z) referenced in function "public: vi
    rtual void __thiscall WebCore::FrameLoaderClientQt::download(class WebCore::Reso
    urceHandle *,struct WebCore::ResourceRequest const &,struct WebCore::ResourceReq
    uest const &,class WebCore::ResourceResponse const &)" (?download@FrameLoaderCli
    entQt@WebCore@@UAEXPAVResourceHandle@2@ABUResource Request@2@1ABVResourceResponse
    @2@@Z)
    FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol "protected:
    void __thiscall QWebPage::downloadRequested(class QNetworkRequest const &)" (?do
    wnloadRequested@QWebPage@@IAEXABVQNetworkRequest@@ @Z) referenced in function "pu
    blic: virtual void __thiscall WebCore::FrameLoaderClientQt::startDownload(struct
    WebCore::ResourceRequest const &)" (?startDownload@FrameLoaderClientQt@WebCore@
    @UAEXABUResourceRequest@2@@Z)
    ..\..\..\..\lib\QtWebKitd4.dll : fatal error LNK1120: 9 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: "Warnings" with NMake and MSVC2008

    Hey,

    sorry I haven't read your post carefully. I thought you are building your own project.
    As for your last posted error there are some notes that intel has problems to build Qt: http://doc.trolltech.com/4.6/known-issues.html. One solution could be to turn off inlining for the compiler. But on that topic I am out...

    Lykurg

  5. #5
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: "Warnings" with NMake and MSVC2008

    I'm not using the Intel Compiler... I'm using MSVC2008

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: "Warnings" with NMake and MSVC2008

    Quote Originally Posted by vbman213 View Post
    I'm not using the Intel Compiler... I'm using MSVC2008
    Wow, today is definitely not my day! But I found an article that says your have to remove

    src/3rdparty/webkit/WebCore/tmp/moc/{debug,release}_shared/mocinclude.tmp

    and

    src/script/tmp/moc/{debug,release}_shared/mocinclude.tmp

    and rerun nmake. The guy had the same error like you and for him it works. You can give it a try.

  7. #7
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: "Warnings" with NMake and MSVC2008

    I'm trying again...

    I also configured:

    "configure -nomake demos -nomake examples"

    and ran nmake sub-src

    I think that will speed up the build time as it is ignoring the examples and demos

Similar Threads

  1. Replies: 3
    Last Post: 15th February 2010, 17:27
  2. Replies: 3
    Last Post: 29th August 2009, 22:24
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.