Replies: 1 comment 2 replies
-
The override_options approach only works when you have Meson control the pyx -> cpp translation as well as the cpp -> o compilation. you either need to get rid of the cython_gen generator, and pass the pyx files directly to py_extension or modify the generator to pass the right options and output a file called .cpp instead of .c (sorry if this is too brief, I’m on my phone) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to compile a Cython project with C++ because it uses things like
vector
. The code is here. I have the following code in mymeson.build
file:This suggests, that I should be doing the equivalent of
language="c++"
inside mysetup.py
file when I was originally using setuptools/numpy.distutils. However, I run into an error linked in the below reference.I am running the following commands with corresponding output:
Then I run
ninja
:and get the following error
Reference: https://stackoverflow.com/questions/53471655/compiling-cython-with-gcc-no-such-file-or-directory-from-include-ios
Beta Was this translation helpful? Give feedback.
All reactions