Results 1 to 6 of 6

Thread: LNK1179 building QWT 6.0.0 under vs2005 QT 4.7

  1. #1
    Join Date
    Jan 2010
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default LNK1179 building QWT 6.0.0 under vs2005 QT 4.7

    Hi

    I'm getting this link error

    qwt_plot_canvas.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT '??0<unnamed-tag>@QwtStyleSheetRecorder@@QAE@XZ'

    Is it only me or the build is broken?

    P.S.>
    QWT 6.0.0-rc5 builds fine under the same environment - however there are many changes between rc5 and the final.

  2. #2
    Join Date
    Apr 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: LNK1179 building QWT 6.0.0 under vs2005 QT 4.7

    Yes, pls help. I'm having the same problem!

    Thx,
    Hannes

  3. #3
    Join Date
    Apr 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: LNK1179 building QWT 6.0.0 under vs2005 QT 4.7

    Hi,

    this seems to be a problem when there is more than one unnamed struct within the same class:
    http://connect.microsoft.com/VisualS...tructs#details

    Unfortunately this is not fixed with VS 2005 SP1.

    An easy workaround is to name the structs.

    I would really appreciate it if this would be done in an official qwt release: It's only a change of four lines in qwt_plot_canvas.cpp.

    Thanks!

    Rob

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: LNK1179 building QWT 6.0.0 under vs2005 QT 4.7

    Then post these four lines. I don't have this compiler to test if any workaround really works.

    Uwe

  5. #5
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: LNK1179 building QWT 6.0.0 under vs2005 QT 4.7

    Workaround added in SVN ( trunk and 6.0 branch ). Please test it - I don't use this compiler myself.

    Uwe

  6. #6
    Join Date
    Apr 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Thumbs up Re: LNK1179 building QWT 6.0.0 under vs2005 QT 4.7

    Hi Uwe,

    thanks for your quick answer and sorry for my delayed reply (holiday and work ...).

    The current 6.0 branch from SVN compiles without problems on WinXP / VS 2005 SP1 / QT 4.7.

    Thank you for your great support.

    Rob

Similar Threads

  1. LNK2005 error in VS2005 when statically building Qt App
    By pkloc in forum General Programming
    Replies: 9
    Last Post: 2nd July 2011, 01:36
  2. Qt 4.6.2 with VS2005
    By Leolander in forum Installation and Deployment
    Replies: 8
    Last Post: 18th March 2010, 03:18
  3. Problem building qt embedded for WinCE and VS2005
    By high_flyer in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 5th June 2009, 01:04
  4. qt and vs2005
    By xenry in forum Installation and Deployment
    Replies: 2
    Last Post: 17th March 2009, 07:56
  5. Qt4 with VS2005
    By bkastel1 in forum Qt Programming
    Replies: 9
    Last Post: 6th November 2007, 12:54

Tags for this Thread

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.