[FFmpeg-trac] #4124(build system:new): libutvideo (and decklink) fails with clang: error: invalid argument '-std=c99' not allowed with 'C++/ObjC++'
FFmpeg
trac at avcodec.org
Thu Nov 20 13:42:23 CET 2014
#4124: libutvideo (and decklink) fails with clang: error: invalid argument
'-std=c99' not allowed with 'C++/ObjC++'
-------------------------------------+-------------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: new
Priority: normal | Component: build
Version: git- | system
master | Keywords:
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
-------------------------------------+-------------------------------------
https://ffmpeg.org/pipermail/ffmpeg-user/2014-November/024313.html
{{{
$ clang -v
clang -v
clang version 3.1 (branches/release_31 157047)
Target: x86_64-unknown-linux-gnu
Thread model: posix
}}}
Also reproducible with newer versions.
{{{
$ dash configure --enable-gpl --enable-libutvideo --cc=clang --cxx=clang
ERROR: utvideo not found
}}}
{{{
check_ld cxx -lutvideo -lstdc++
check_cxx
BEGIN /tmp/ffconf.ez4q4dPn.cpp
1 #include <stdint.h>
2 #include <stdlib.h>
3 #include <utvideo/utvideo.h>
4 #include <utvideo/Codec.h>
5 int main(void) {
6 CCodec* obj1;
7 return 0; }
END /tmp/ffconf.ez4q4dPn.cpp
clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 -fomit-frame-pointer
-pthread -D__STDC_CONSTANT_MACROS -c -o /tmp/ffconf.v9p62Akq.o
/tmp/ffconf.ez4q4dPn.cpp
error: invalid argument '-std=c99' not allowed with 'C++/ObjC++'
ERROR: utvideo not found
}}}
This primarily affects osx users.
For decklink, the same error is shown when compiling the decklink c++
files.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4124>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list