2010/11/15 Dan Dennedy <d...@dennedy.org>: > On Mon, Nov 15, 2010 at 2:52 AM, jb <j...@kdenlive.org> wrote: >> On Monday 15 November 2010 10.06:23 Simon Eugster wrote: >>> Good morning, >> >>> /data/cworkspace/kdenlive.git/kdenlive/src/kiss_fft/kiss_fft.c:393: >>> error: expected expression before ‘/’ token >>> make[2]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/kiss_fft/kiss_fft.o] >>> Fehler 1 >>> >>> Any hint? >> >> Yes. C code does not accept comments starting with // >> You must use /* ... */ for your comments.
Man. I really didn't know that. > I use // style comments in my C code all the time except public > headers for portability. Of course, I am referring to C99. Obviously, > he does not want to have to modify all of this existing code he is > reusing, so it must come down to a compiler flag. Is somebody adding > '-ansi' ? I just tried to add the --std=c99 flag in CMakeLists.txt, but somewhere these flags are set: > Cflags: -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align > -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W > -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute > -fno-common (added «message(C flags: ${CMAKE_C_FLAGS})» at the end of CMakeLists.txt to display them.) -ansi is not used (at least git grep did not find it); how could I switch to C99? (Or is there any drawback in doing so?) Simon ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Kdenlive-devel mailing list Kdenlive-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kdenlive-devel