Error compiling with the new Clang 32bit compiler
Posted: Tue Sep 20, 2022 1:46 am
I have a large program, using C++Builder, that has been built over many years. Recently I compiled the program using RAD Studio 11.1 using the “traditional compiler” with no problems. I now need to compile using the latest Clang 32bit compiler. The problem is a compiler error relating to ...\windows\sdk/GdiplusPath.h.
The error message is in 2 parts. c:\program files (x86)\embarcadero\studio\22.0\include\windows\sdk/GdiplusPath.h(146,34): C++ error : reference to 'byte' is ambiguous
c:\program files (x86)\embarcadero\studio\22.0\include\windows\sdk\rpcndr.h(197,22): C++ error : > candidate found by name lookup is 'byte'
c:\program files (x86)\embarcadero\studio\22.0\include\windows\crtl\stddef.h(258,11): C++ error : > candidate found by name lookup is 'std::byte'
On checking Google the 2 lookups are functionally equivalent but nonetheless the Clang compiler sees it as an error.
The problem is almost certainly related to the TChart components, code not using TChart compiles without errors.
I am using TeeChart Pro v2022.35.220329 32bit VCL
Help please
The error message is in 2 parts. c:\program files (x86)\embarcadero\studio\22.0\include\windows\sdk/GdiplusPath.h(146,34): C++ error : reference to 'byte' is ambiguous
c:\program files (x86)\embarcadero\studio\22.0\include\windows\sdk\rpcndr.h(197,22): C++ error : > candidate found by name lookup is 'byte'
c:\program files (x86)\embarcadero\studio\22.0\include\windows\crtl\stddef.h(258,11): C++ error : > candidate found by name lookup is 'std::byte'
On checking Google the 2 lookups are functionally equivalent but nonetheless the Clang compiler sees it as an error.
The problem is almost certainly related to the TChart components, code not using TChart compiles without errors.
I am using TeeChart Pro v2022.35.220329 32bit VCL
Help please