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. Building Qt app with __stdcall flag (QMAKE_CFLAGS += /Gz) causes compilation errors
QtWS25 Last Chance

Building Qt app with __stdcall flag (QMAKE_CFLAGS += /Gz) causes compilation errors

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k 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.
  • V Offline
    V Offline
    vsbrar
    wrote on last edited by
    #1

    I’m facing a similar problem changing calling convention to cdecl gives “Interlocked” errors in files qatomic_windows.h and intrin.h. I’m tried on Visual Studio using QT VS Plugin and QT Creator.
    Steps to recreate:
    Visual Studio
    Create a QT console application.
    VS properties -> Configuration Properties -> C/C++ -> Advanced -> Calling Convention.
    Change to __stdcall (/Gz)
    Qt Creator
    Create a console or any other application
    In the .pro file add the following lines
    QMAKE_CFLAGS += /Gz
    QMAKE_CXXFLAGS += /Gz
    Build the project
    Platform Details:
    Windows 7 64 bit
    Visual Studio 2010
    QT Version 4.8.2

    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