Open teto opened 6 years ago
Hi. I’ll need to have a closer look to this.
One thing is that I would like to keep the cast mal command line setup as automatic as possible, so that a user does not have to fiddle too much with flags for castxml. This has always been like this in pygccxml, so I would like to keep that ease of use.
I thought that the —castxml-cc-gnu was needed for Linux. If I remember well it tells castxml that it will work with gcc. But I am unsure now. Maybe you could trace down what that flag does exactly in castxml.
Also, you may need to add a c++11 flag for gcc6, but I think it is not mandatory (but may help here)
I am trying to parse the libC library, I had it working on Ubuntu. I've now switched to nixos but the working castxml command doesn't seem to be built from pygccxml.
My current python code has:
with pygccxml 1.9.1 and castxml
pygccxml generates and calls the following command (which fails):
If I edit the command manually aka remove the
-c -x c++ --castxml-cc-gnu
it seems to work better :Looking at the code, the --castxml-cc-gnu seems always added on linux so I wonder if there is a way around.