Hello, (and first of all, excuse me for my French accent ;-)
this afternoon I tried to compile a C++ program to capture pictures from a webcam (ov519 chipset). I made a class with the C system code inside it, and I created an object of my class. I followed http://www.acmesystems.it/?id=38 and tried: $ make host $ make and it works! so I tried after: $ make cris-axis-linux-gnu $ make In file included from /home/alexandre/Projects/foxboard/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/videodev.h:8, from Webcam.hh:25, from mainWebcam.cpp:1: /home/alexandre/Projects/foxboard/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/videodev2.h:611: syntax error before `;' token ... After searching... I discovered that the options set up by: include $(AXIS_TOP_DIR)/tools/build/Rules.axis add "-ansi" option for C++ compiler. g++ doesn't care about it and discard it, but g++-cris which is a link of gcc-cris naturally care about it and prevent non-ansi conform programs to be compiled... (in fact to include non-ansi headers file) So, now I modified my Rules.axis file to delete "-ansi", but I'd like to know whom to tell about it, to modify it in the next distribution? Anyway, thanks for the work already done, and after I tried my application (webcam module & C and C++ programs), I will submit to this community. Alexandre
