2015-02-02 11:57 PM
Hello,
I'm trying use Class but not working... Console out:source/PIDControl.h:11:1: error: unknown type name
'class'
source/PIDControl.h:11:19: error: expected
'='
,
','
,
';'
,
'asm'
or
'__attribute__'
before
'{'
token
make: *** [build/obj/main.o] Error 1
How to use C++ for example Class?
#orhan-yılmaz #c++ #oop
2015-02-03 02:36 AM
2015-02-07 12:25 AM
Hi,
In user.mak replace main.c with main.cpp or put your files with cpp extension under ./source. I never tested it but the Makefile supports it. Giovanni