XTP and MSVC conformance mode |
Post Reply |
Author | ||||
mnissl
Groupie Joined: 12 June 2018 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 12 June 2018 at 6:08am |
|||
XTP 18.4.0 (and prior) does not compile having the MSVC conformance mode enabled (/permissive-, Visual Studio 15.7.3). We would like our application to comply with the C++ standard, but XTP needs to do so as well. Are there any plans to make XTP compatible?
|
||||
Hurrain
Newbie Joined: 12 June 2018 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
|||
I'm really curious about this as well. This is also one of the requirements we're going to need to fulfill sooner or later at our company.
|
||||
mnissl
Groupie Joined: 12 June 2018 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
|||
Just in case nobody has a clue what I'm talking about: |
||||
a.schoenle
Newbie Joined: 16 November 2018 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|||
Let me second this. It would be very important for us to at least compile our own sources with /permissive- enabled if they pull XTP headers. Could someone from Codejock at least hint to whether this is something you are considering in the forseeable future? |
||||
a.schoenle
Newbie Joined: 16 November 2018 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|||
I got curious so I had a go at it. You can download a patch from here: This will make the headers conforming and you should be able to compile a consumer with /permissive-. Most of it was missing this in
I also started fixing some of the .cpp files to make the library compile with /permissive- but it got tedious. It seems like 90% of the remaining stuff is that
I would like to leave this to the CodeJock people and sincerely hope that they will incorporate this upstream so I will not have to redo it. |
||||
a.schoenle
Newbie Joined: 16 November 2018 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|||
Was of course 18.5.0, not 16.5.0. Here are the patches including for 18.6.0: |
||||
a.schoenle
Newbie Joined: 16 November 2018 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|||
Try again. 18.6. now compiles with /permissive-. To apply go to the root folder and do patch -p1 < path/to/patch/file.patch For 18.5. the patch only makes the headers conforming and it is untested. The diff is done from "Sources", so you will have to go to root/Sources and do patch -p1 < path/to/patch/file.patch Also, you will have to add a line
to stdafx.h before it pulls the windows headers. |
||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |