Compiler errors when compiling C++ projects

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
fjrg76
Posts: 11
Joined: Sat May 04, 2013 1:46 am

Compiler errors when compiling C++ projects

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Compiler errors when compiling C++ projects

Post 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
Post Reply