Mixing /std configurations of VC++ projects

Barias, Abe [AUTOSOL/SYSS/MNL] 46 Reputation points
2022-03-30T05:30:11.993+00:00

Assuming I have 2 VC++ projects:

  • Project1.dll
  • Project2.dll

Project1 is dependent on Project2.

This is using VS2020.

If Project2 is built using /std:c++14 and Project1 is using /std:c++20.

Will there be an issue on this?

I have read about ABI compatibility starting from VS2015 up to the latest but this part, the language standard, is the one I am not sure yet.

Thank you.

I have read

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,312 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YujianYao-MSFT 4,266 Reputation points Microsoft Vendor
    2022-03-30T07:34:28.227+00:00

    Hi @Barias, Abe [AUTOSOL/SYSS/MNL] ,

    I wrote a demo for testing according to your description, and the program has no errors, so in most cases you don't have to worry about this problem.

    In my opinion, your question is closer to compatibility between C++ standards, I suggest you read this issue carefully.

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.