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. How to check msvc 64 and 32 bit in pro file in windows
Forum Updated to NodeBB v4.3 + New Features

How to check msvc 64 and 32 bit in pro file in windows

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 390 Views
  • 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.
  • J Offline
    J Offline
    Jakub Srna
    wrote on last edited by
    #1

    Dear all,
    I am currently facing a problem with the msvc on Windows, where I would like to use different flags for my Fortran library for 64 bit and 32 versions. What I tried to use to distinguish these, was this QMAKE_HOST.arch but it always gives me only x86 even though I switch the compiler to MSVC 64 bit. It's probably worth to say, that my windows distribution is actually 64 bit as well. Any ideas on how to check the compiler bitness in the pro file?
    Thank you very much

    aha_1980A 1 Reply Last reply
    0
    • J Jakub Srna

      Dear all,
      I am currently facing a problem with the msvc on Windows, where I would like to use different flags for my Fortran library for 64 bit and 32 versions. What I tried to use to distinguish these, was this QMAKE_HOST.arch but it always gives me only x86 even though I switch the compiler to MSVC 64 bit. It's probably worth to say, that my windows distribution is actually 64 bit as well. Any ideas on how to check the compiler bitness in the pro file?
      Thank you very much

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Jakub-Srna,

      IIRC, QMAKE_TARGET.arch should do that.

      Regards

      Qt has to stay free or it will die.

      J 1 Reply Last reply
      2
      • aha_1980A aha_1980

        Hi @Jakub-Srna,

        IIRC, QMAKE_TARGET.arch should do that.

        Regards

        J Offline
        J Offline
        Jakub Srna
        wrote on last edited by
        #3

        Hey @aha_1980 ,
        thank you very much for your help. I could not really find it anywhere in the documentation.

        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