[Windows] Compilation warnings: unknown option '-std=c++11'
See original GitHub issueHello, first of all, great work on this tool! it works like a charm!
I’m a windows user, and the default example raises 2 warnings because of those flags I believe: https://github.com/tbenthompson/cppimport/blob/9b3326424c90e7023e34a1ca413221f6509049a3/cppimport/templating.py#L30
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
cl : Command line warning D9002 : ignoring unknown option '-fvisibility=hidden'
I think msvc has its own set of compiler flags (like /std:c++11
) and using those on windows might fix those warnings.
Thanks again for the good work!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Command line warning D9002: ignoring unknown option '-std ...
Any idea? Command line warning D9002: ignoring unknown option '-std=c++0x'. Other than the compile warning, the program gets compile and ...
Read more >std:c++11 vs. - MSDN - Microsoft
It looks like Microsoft is using "-std:" (or "/std:") while other ... cl : Command line warning D9002 : ignoring unknown option '-std=c++11'...
Read more >Build under windows ignores -std=c++14 · Issue #179 · ifm/ifm3d
The problem is whenever I use the library in my project it throws the same failure: cl : Command line warning D9002 :...
Read more >Options to Request or Suppress Warnings — gcc 6 ... - Fedora
When an unrecognized warning option is requested (e.g., -Wunknown-warning), GCC emits a diagnostic stating that the option is not recognized. However, if the...
Read more >Intel® oneAPI DPC++/C++ Compiler Developer Guide and ...
If you specify O9, the compiler issues a warning, then ignores the unrecognized option O9, and proceeds with the compilation. The O option...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Huh, are you sure you’re linking in the JUCE library at all? You may need to add something like
Or whatever the appropriate library name would be. Generally, C++ libraries have headers that needed to included at compile-time and libraries that need to be linked at link-time. In general, I’d suggest you start by getting a simple single C++ file compiling with the library before adding complexity like Python bindings. That’ll also help you understand the various compiler and linker flags and get a better scaffolding for debugging these kinds of problems in the future.
I’m going to close this since I’m pretty sure
cppimport
isn’t causing your issues. Hope you resolve your problem!Hello again!
Thank you again for your comment, I managed to make it work after all! It was indeed not
cppimport
causing the issue. I needed to add information on how to compile the library and link to a bunch of system libraries as well!now the config looks something like this: