Results 1 to 4 of 4

Thread: Warning redeclared without dllimport attribute after being referenced with dlllinkage

  1. #1
    Join Date
    Jun 2011
    Posts
    7
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Warning redeclared without dllimport attribute after being referenced with dlllin

    When using qwt a lot of warning appear during compilation:

    ..\..\..\qwt\qwt-6.0.0\src/qwt_interval.h:270: warning: 'bool QwtInterval::isValid() const' redeclared without dllimport attribute after being referenced with dll linkage

    In qwt examples it is about 20 warnings each, but on bigger projects it gets into an unclear state because these warnings are flooding the compiler output and you are able to miss real warnings....
    Is there any solution?

    [working with QT4.70, QWT 6.0.0, Windows 7 64Bit (Compiler:MinGW) ]


    Added after 14 minutes:


    in advance:
    posts like "on my linux-system everything works fine" or "Iam working under debian 16core nonX86er powerpc and VS 2010" does not help,
    I am afraid this warning is Win7+QWT or even Win7+QWT+minGW specific.
    Last edited by CroOm; 18th August 2011 at 14:43.

  2. #2
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Warning redeclared without dllimport attribute after being referenced with dlllin

    Hi CroOm,

    Did you get anywhere with that warning issue you reported? I am having the exact same issue using Qwt 6.0.1 on Windows 7 using Qt 4.7.4 + MinGW. I have tried all sorts of #pragma statements, but to no avail.

    Cheers, Alan.

  3. #3
    Join Date
    Oct 2011
    Location
    Venice, Italy
    Posts
    20
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Warning redeclared without dllimport attribute after being referenced with dlllin

    Quote Originally Posted by agarny View Post
    Hi CroOm,

    Did you get anywhere with that warning issue you reported? I am having the exact same issue using Qwt 6.0.1 on Windows 7 using Qt 4.7.4 + MinGW. I have tried all sorts of #pragma statements, but to no avail.

    Cheers, Alan.

    Same issue here, same Qwt version, Qt 4.7.0, MinGW with Windows Vista.

  4. #4
    Join Date
    Aug 2011
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Warning redeclared without dllimport attribute after being referenced with dlllin

    Hi all,

    Not helping much but same issue here with Windows XP, Qt 4.7.4, QWT 6.0.1 (so not Win 7/Vista specific)

Similar Threads

  1. Replies: 3
    Last Post: 29th April 2011, 10:13
  2. Path problem for Symbian native lib files, when referenced in QT pro file
    By farooqmian in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 10th February 2011, 14:32
  3. Replies: 6
    Last Post: 24th January 2011, 19:48
  4. Problem including library (dllimport)
    By cae in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2010, 07:53
  5. dllimport redeclared
    By miketigerwoods in forum Qt Programming
    Replies: 0
    Last Post: 6th July 2006, 20:05

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.