We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It looks like the c++ standard is ignored if provided via the cflags when using MSVC
cflags
The example below fails in MSVC but success with gcc (10.5):
10.5
from pygccxml import parser from pygccxml import utils generator_path, generator_name = utils.find_xml_generator() print(f"f{generator_path=}") print(f"f{generator_name=}") header=""" #include <variant> std::variant<int, double, float> value; """ config = parser.xml_generator_configuration_t( xml_generator_path=generator_path, xml_generator=generator_name, cflags="-std=c++17", ) parsed_declarations = parser.parse_string( header, config, )
Error:
C:\Users\User\AppData\Local\Temp\tmp9050xy28.h:3:6: error: no template named 'variant' in namespace 'std' std::variant<int, double, float> value; ~~~~~^ 1 error generated.
Using
castxml 0.4.5 pygccxml 2.5.0
and MSVC 19.39.33522
19.39.33522
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It looks like the c++ standard is ignored if provided via the
cflags
when using MSVCThe example below fails in MSVC but success with gcc (
10.5
):Error:
Using
and MSVC
19.39.33522
The text was updated successfully, but these errors were encountered: