How to use C++?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-02 11:57 PM
Posted on February 03, 2015 at 08:57
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
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-03 2:36 AM
Posted on February 03, 2015 at 11:36Hello Yilmaz ,have you tried the c++ compiler ?/cygdrive/c/SPC5Studio/eclipse/plugins/com.st.tools.spc5.tools.hightec_1.0.0.201306281422/hightec/bin$ ppc-vle-c++.exe --versionppc-vle-c++.exe (HighTec Release free-toolchain-v4.6.2.1) 4.6.3 build on 2013-01-07for this , you need to create a new platform component Best regards Erwan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-07 12:25 AM
Posted on February 07, 2015 at 09:25
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