Build with AVR C compiler [message #1764574] |
Wed, 31 May 2017 07:44  |
Eclipse User |
|
|
|
Having installed AVR plugin witah all the necessary plugins and compilers, after trying to build first project I get the following error message:
--------------------------------------
make all
Building file: ../main.c
Invoking: AVR Compiler
avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega128 -DF_CPU=1000000UL -MMD -MP -MF"main.d" -MT"main.o" -c -o "main.o" "../main.c"
In file included from ../main.c:7:0:
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:45:1: error: unknown type name 'class'
class NIBO2Class {
subdir.mk:18: recipe for target 'main.o' failed
^
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:45:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
class NIBO2Class {
^
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:64:8: error: unknown type name 'NIBO2Class'
extern NIBO2Class NIBO2;
^
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:70:1: error: unknown type name 'class'
class EnginePartClass {
^
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:70:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
class EnginePartClass {
^
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:81:1: error: unknown type name 'class'
class EngineClass {
^
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:81:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
class EngineClass {
^
/home/kurt/NiboRobolib/Nibo/libraries/NIBO2/NIBO2.h:97:8: error: unknown type name 'EngineClass'
extern EngineClass Engine;
^
------------------------ etc ------------------------------------------
included NIBO2.h file looks like: see attachement:
any help is appreciated.
Thanks a lot.
Attachment: NIBO2.h
(Size: 3.11KB, Downloaded 221 times)
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03744 seconds