Page 1 of 1

Compiler errors when compiling C++ projects

Posted: Sat May 11, 2013 6:54 am
by fjrg76
Hi

Before I had posted about "make" errors, but now I can compile C projects from inside Eclipse.

The newer fact is that there are errors when compiling C++ projects:

make -j1 all
Compiling ../../os/various/ch.cpp
../../os/various/ch.cpp: In static member function 'static eventmask_t chibios_rt::Event::ClearFlags(eventmask_t)':
../../os/various/ch.cpp:290:32: error: 'chEvtClearFlags' was not declared in this scope
../../os/various/ch.cpp: In static member function 'static eventmask_t chibios_rt::Event::AddFlags(eventmask_t)':
../../os/various/ch.cpp:295:30: error: 'chEvtAddFlags' was not declared in this scope
../../os/various/ch.cpp:296:3: warning: control reaches end of non-void function [-Wreturn-type]
../../os/various/ch.cpp: In static member function 'static eventmask_t chibios_rt::Event::ClearFlags(eventmask_t)':
../../os/various/ch.cpp:291:3: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [build/obj/ch.o] Error 1


(straight output from the straight ARMCM3-STM32F103-G++ project.)

Any workaround?

Re: Compiler errors when compiling C++ projects

Posted: Sat May 11, 2013 8:55 am
by Giovanni
Hi,

Probably the project has not yet been updated with the new C++ wrapper, I am doing a general test pass so it will be likely fixed soon. If you want to go ahead look at the F4 C++ demo and fix the differences.

Giovanni