Wollte gerade das Demofile kompilieren, habe allerdings einige Fehlermeldungen erhalten:
Code:
In file included from ../../RP6Lib/RP6base/RP6BaseServoLib.h:5,
from ../../RP6Lib/RP6base/RP6BaseServoLib.h:5,
from ../../RP6Lib/RP6base/RP6BaseServoLib.h:5,
from RP6Base_I2CMaster_01_uncommented.c:5:
../../RP6Lib/RP6base/RP6BaseServoLib.h: At top level:
../../RP6Lib/RP6base/RP6BaseServoLib.h:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos'
../../RP6Lib/RP6base/RP6BaseServoLib.h:9: error: redefinition of 'main'
../../RP6Lib/RP6base/RP6BaseServoLib.h:10: error: previous definition of 'main' was here
../../RP6Lib/RP6base/RP6BaseServoLib.h: In function 'main':
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO1' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO2' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:31: error: 'true' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'servo1_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'pos' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:35: error: 'servo2_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:37: error: 'RIGHT_TOUCH' undeclared (first use in this function)
In file included from ../../RP6Lib/RP6base/RP6BaseServoLib.h:5,
from ../../RP6Lib/RP6base/RP6BaseServoLib.h:5,
from RP6Base_I2CMaster_01_uncommented.c:5:
../../RP6Lib/RP6base/RP6BaseServoLib.h: At top level:
../../RP6Lib/RP6base/RP6BaseServoLib.h:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos'
../../RP6Lib/RP6base/RP6BaseServoLib.h:9: error: redefinition of 'main'
../../RP6Lib/RP6base/RP6BaseServoLib.h:10: error: previous definition of 'main' was here
../../RP6Lib/RP6base/RP6BaseServoLib.h: In function 'main':
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO1' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO2' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:31: error: 'true' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'servo1_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'pos' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:35: error: 'servo2_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:37: error: 'RIGHT_TOUCH' undeclared (first use in this function)
In file included from ../../RP6Lib/RP6base/RP6BaseServoLib.h:5,
from RP6Base_I2CMaster_01_uncommented.c:5:
../../RP6Lib/RP6base/RP6BaseServoLib.h: At top level:
../../RP6Lib/RP6base/RP6BaseServoLib.h:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos'
../../RP6Lib/RP6base/RP6BaseServoLib.h:9: error: redefinition of 'main'
../../RP6Lib/RP6base/RP6BaseServoLib.h:10: error: previous definition of 'main' was here
../../RP6Lib/RP6base/RP6BaseServoLib.h: In function 'main':
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO1' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO2' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:31: error: 'true' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'servo1_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'pos' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:35: error: 'servo2_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:37: error: 'RIGHT_TOUCH' undeclared (first use in this function)
In file included from RP6Base_I2CMaster_01_uncommented.c:5:
../../RP6Lib/RP6base/RP6BaseServoLib.h: At top level:
../../RP6Lib/RP6base/RP6BaseServoLib.h:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos'
../../RP6Lib/RP6base/RP6BaseServoLib.h:9: error: redefinition of 'main'
../../RP6Lib/RP6base/RP6BaseServoLib.h:10: error: previous definition of 'main' was here
../../RP6Lib/RP6base/RP6BaseServoLib.h: In function 'main':
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO1' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:27: error: 'SERVO2' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:31: error: 'true' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'servo1_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:34: error: 'pos' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:35: error: 'servo2_position' undeclared (first use in this function)
../../RP6Lib/RP6base/RP6BaseServoLib.h:37: error: 'RIGHT_TOUCH' undeclared (first use in this function)
RP6Base_I2CMaster_01_uncommented.c: At top level:
RP6Base_I2CMaster_01_uncommented.c:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos'
RP6Base_I2CMaster_01_uncommented.c:9: error: redefinition of 'main'
../../RP6Lib/RP6base/RP6BaseServoLib.h:10: error: previous definition of 'main' was here
RP6Base_I2CMaster_01_uncommented.c: In function 'main':
RP6Base_I2CMaster_01_uncommented.c:27: error: 'SERVO1' undeclared (first use in this function)
RP6Base_I2CMaster_01_uncommented.c:27: error: 'SERVO2' undeclared (first use in this function)
RP6Base_I2CMaster_01_uncommented.c:31: error: 'true' undeclared (first use in this function)
RP6Base_I2CMaster_01_uncommented.c:34: error: 'servo1_position' undeclared (first use in this function)
RP6Base_I2CMaster_01_uncommented.c:34: error: 'pos' undeclared (first use in this function)
RP6Base_I2CMaster_01_uncommented.c:35: error: 'servo2_position' undeclared (first use in this function)
RP6Base_I2CMaster_01_uncommented.c:37: error: 'RIGHT_TOUCH' undeclared (first use in this function)
make.exe: *** [RP6Base_I2CMaster_01_uncommented.o] Error 1
> Process Exit Code: 2
> Time Taken: 00:21
Das ist nur ein kleiner Ausschnitt, da die Fehlermeldungen ewig lang sind, STRG+A an der Stelle leider nicht geht und meine Nachricht hier sowieso maximal 20000 Zeichen enthalten darf.
Makefile ist angepasst, daran kann es also nicht liegen. Der Name der Datei, also "RP6Base_I2CMaster_01_uncommented.c" stimmt schon, ich überschreibe immer Example-Projekte, weil das Gefrickel mit dem Compiler und den Makefiles bei mir sonst nur Probleme macht.
Lesezeichen