Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Ignoring #pragma

Ignoring #pragma

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 6.6k 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.
  • A Offline
    A Offline
    Arthiego90
    wrote on last edited by
    #1

    Hi,

    I have a strange problem. I have made my app on windows 8.1 where I had used #pragma directives. Running this application in QtCreator on this system is going successful. I need to run it also on windows XP where i have this error:

    "ignoring #pragma comment [-Wunknown-pragmas]"
    "ignoring #pragma data_seg [-Wunknown-pragmas]"

    What could be the problem?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      In general I would expect you are not using the same compiler on both machines.
      What are the compilers/kits used under windows 8 and xp?
      Type?
      Version?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Arthiego90
        wrote on last edited by
        #3

        Compilers are the same:

        MinGW 4.8 32bit
        Microsoft Visual C++ Compiler 10.0 (x86)
        Microsoft Visual C++ Compiler 10.0 (amd64)

        the diffrence is in Qt version:

        windows 8: Qt Creator 2.8.1, Qt 5.1.1
        windows XP: QtCreator 3.0.0, Qt 5.2.0

        @edit
        I have reinstalled Qt on windows XP to the same version as on windows 8 and uncheck MinGW compiler while installing and everything is ok.

        Thank's for feedback.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          I guess you are using now the same compiler on both machines, while you have used different compilers before.

          Vote the answer(s) that helped you to solve your issue(s)

          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