Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Linking with ICC to a Qt built with Gcc?

Linking with ICC to a Qt built with Gcc?

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bartoli
    wrote on last edited by
    #1

    I have been using a Qt4.8.2 compiled with gcc, to link in an applicaton built with icc (on a linux x86_64)
    Now that i have switched to 4.8.5, when i build my app with icc, i get the following errors :
    error: taking the address of a bit field is not allowed
    This is on the three Q_UNUSED() lines of ifYouGetCompileErrorHereYouUseWrongQt() of include/QTest/qtestspontaneevent.h
    But those three lines, are new in the function, so i guess my error is not related to the function name?
    (They were apparently added there : http://qt.gitorious.org/qt/qt/commit/4326cff0ada1e1bd9265ff11a035ae21314471f0)

    I'm only at the compilation, and not the linkage phase, so this shouldn't be an icc/gcc conflict, right?
    Can i safely remove those lines to build my app, considering it's only a wartning, that is notified by a compiler i won't use (Clang according to the commit)
    Or any other hints to solves this the proper way?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you build Qt yourself ? If so, why not build it directly with icc ?

      As for your question, you should try to ask on the interest mailing list, you'll find Qt's developers/maintainers (this forum is more user oriented)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved