Skip to content
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

Fix warning from compiling C++ with a C compiler and invalid flags #3361

Open
2 tasks done
stuartarchibald opened this issue Oct 1, 2018 · 3 comments
Open
2 tasks done

Comments

@stuartarchibald
Copy link
Contributor

Reporting a bug

Here:
https://github.com/numba/numba/blob/master/numba/pycc/platform.py#L52-L53
the distutils customized C compiler tries to compile some C++ (denoted by file suffix) with a flag that is invalid for C++ source. Fix it!

@sklam
Copy link
Member

sklam commented Oct 2, 2018

What is the invalid flag?

@stuartarchibald
Copy link
Contributor Author

from memory, think it was -Wstrict-prototypes, which is C/obj-C only.

@99991
Copy link

99991 commented Oct 14, 2019

I've got the same issue with numba version 0.44.1 on Debian with g++ version 8.3.0. The error message is:

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants