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. [SOLVED] Is it ok to see -DWIN32 showing up in the x64 msvc command prompt during nmake?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Is it ok to see -DWIN32 showing up in the x64 msvc command prompt during nmake?

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 8.4k 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.
  • V Offline
    V Offline
    VitorAMJ
    wrote on last edited by
    #1

    Hello fellows.
    When I try to compile Qt 4.7.3 using msvc-2010 service pack 1 (Windows 7 64 and msvc2010 x64 command prompt) I see this behavior that my untrained eyes found strange.
    The compile option -DWIN32 is displayed for as much lines as I could count.

    Is it normal behavior?
    Does it mean it is compiling Qt as a 32 that runs on 64?
    Or simply as native Qt 64 bits (the DWIN32 is not important, :-) ) ?

    Thanks in Advance Guys!

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      QtSDK has no libraries for 64 bits on windows. If you want to have 64 bits, you will need to manually compile Qt sources with 64 support. However WIN32 preprocessor definition is perfectly valid on 64 bits projects.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VitorAMJ
        wrote on last edited by
        #3

        Yes ;) . As I have mentioned, I have compiled Qt src using msvc2010 command prompt for x64, and still, during this allegedly 64 bit Qt compilation, -DWIN32 is printed in the prompt.

        Also, my x64 projects are working. I just don't get these Qt src compilation messages showing -DWIN32 using msvc x64 command prompt. Do you know why is it displayed instead of something like -DX64?

        Maybe it is a silly question, thanks any way.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cincirin
          wrote on last edited by
          #4

          "Predefined Macros":http://msdn.microsoft.com/en-us/library/b0084kay(v=VS.100).aspx
          If you serach for _WIN32 it say:
          "_WIN32: Defined for applications for Win32 and Win64. Always defined."

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VitorAMJ
            wrote on last edited by
            #5

            Tks!

            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