-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building Perl 5.40.1 in C++ mode with Visual Studio 2019 fails #23152
Comments
All untested, but you can try the following:
|
Line 582 in f722f11
What is
So If Similar example
Worked in February 1970. It was probably a syntax error by January 1980. That feature can still be turned on in MSVC 2022 with a certain flag nobody ever uses. Historic perl core/Configure universally disables that feature if it discovers a random closed src Unix CC has it turn on by default. |
HTH |
Why write If its valid PDF C, why try to write unit tests for the end user's C compiler at particular SHA1 of disk file |
As to the original problem: building with a C++ compiler isn't intended for general use, only as a way to get the supposed better error reporting from C++ compilers (which you mostly only get by writing C++ code). But we also want to use some C99, features, so you need a compiler that supports designated member initialisation, which is a C++ 20 feature. We specifically avoid designated array initialisation since no C++ standard supports it (though We don't use these features in headers unless the code using that feature is guarded to prevent it being compiled outside of core use. Do you have some special need to build perl as C++? |
Solved it. Solution is a (somewhat) combination of both. I was calling Starting With both the 14.21 VC toolkit and Should I close this issue? |
Not really. The option was there, and a couple of years back I successfully built perl with this option enabled, so I just thought it was a supported build option and build mode. |
As per title. When win32\Makefile is edited to enable the USE_CPLUSCPLUS= define option, the build fails instantly. Build environment is Windows 11 with VS 2019 Community.
Build output is as follow:
Any advice on how this can be resolved will be greatly appreciated.
By the way, a 'normal' build with USE_CPLUSCPLUS commented out succeeds.
The text was updated successfully, but these errors were encountered: