Results 1 to 4 of 4

Thread: Rebuild Qt 4.3.4 with MS VS 2015

  1. #1
    Join Date
    Mar 2016
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Rebuild Qt 4.3.4 with MS VS 2015

    Hi,

    I need to rebuild my Qt 4.3.4 with MS Visual Studio 2015. I get the following error building qtmain_win.cpp:

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h(200): error C2059: Syntaxfehler: "reinterpret_cast"

    Google didn't help me.

    Any ideas?

    Best regards,
    Peter

  2. #2
    Join Date
    Jul 2016
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Rebuild Qt 4.3.4 with MS VS 2015

    Do you have a solution, i'm running into the same problem ...

    Best regards
    (also a) Peter

  3. #3
    Join Date
    Mar 2016
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Rebuild Qt 4.3.4 with MS VS 2015

    Hello Peter,

    Yes, I habe a solution. I'll write it here when I am back from holiday end of next week.

    Kind regards
    Peter

  4. #4
    Join Date
    Mar 2016
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Rebuild Qt 4.3.4 with MS VS 2015

    Hi Peter,

    sorry for my late answer.

    I have checked my sources WinDiff and the only change I did should be the following lines in src\corelib\arch\qatomic_windows.h:

    // Abfrage darf ab VS 2015 nicht mehr sein
    //# ifndef _M_IX86
    extern "C" {
    void *_InterlockedCompareExchangePointer(void * volatile *, void *, void *);
    void *_InterlockedExchangePointer(void * volatile *, void *);
    }
    # pragma intrinsic (_InterlockedCompareExchangePointer)
    # pragma intrinsic (_InterlockedExchangePointer)
    //# else
    //# define _InterlockedCompareExchangePointer(a,b,c) \
    // reinterpret_cast<void *>(_InterlockedCompareExchange(reinterpret_cast<vo latile long *>(a), reinterpret_cast<long>(b), reinterpret_cast<long>(c)))
    //# define _InterlockedExchangePointer(a, b) \
    // reinterpret_cast<void *>(_InterlockedExchange(reinterpret_cast<volatile long *>(a), reinterpret_cast<long>(b)))
    //# endif

    If you get still errors please contact me here again. Perhaps I can remeber to other changes when I see your errors.

    Kind regards,
    Peter

Similar Threads

  1. Qt 5.6.0 VS 2015 build
    By ifarkas in forum Newbie
    Replies: 2
    Last Post: 21st February 2016, 05:23
  2. Qt 5.6beta + Visual Studio 2015
    By thru in forum Newbie
    Replies: 5
    Last Post: 1st January 2016, 20:34
  3. Qt 4.4.1 and Visual Studio 2015
    By Arthur in forum Installation and Deployment
    Replies: 1
    Last Post: 7th April 2015, 09:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.