[LAD] fftw_complex and C++11

Harry van Haaren harryhaaren at gmail.com
Sun Jan 4 22:19:11 UTC 2015


>
> On Sun, Jan 4, 2015 at 4:30 PM, Aurélien Leblond <blablack at gmail.com>
> wrote:
> >> - Compile this plugin with C99 - that's the solution I have in the git
> >> at the moment but I get the warning "cc1plus: warning: command line
> >> option '-std=c99' is valid for C/ObjC but not for C++ [enabled by
> >> default]" and call me pedantic but I don't like warnings!
>
As far as I can tell, you're passing the -std=c99 flags to a C++ compiler.
Make your build-system use a C compiler for said C file (generally renaming
the extension to .c instead of .cpp/.cxx is enough).

Also ensure you're passing the flags to CFLAGS and not CXXFLAGS.

Hope that fixes the warnings! Cheers, -Harry

-- 

http://www.openavproductions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20150104/704d6de3/attachment.html>


More information about the Linux-audio-dev mailing list