Netbeans: syntax error

OP #3208614
Lesenswert?

Habe gestern MPLAB X installiert das die Netbeans-IDE verwendet.

Alleine:
1
char * teststring;
produziert:
1
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
2
make[1]: Entering directory `C:/Test/Test4/CAN_1.X'
3
make  -f nbproject/Makefile-default.mk dist/default/production/CAN_1.X.production.hex
4
make[2]: Entering directory `C:/Test/Test4/CAN_1.X'
5
"C:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe"  -p18F458   -I "C:\Program Files\Microchip\mplabc18\v3.37.01\bin"\\..\\h  -fo build/default/production/main.o   main.c 
6
MPLAB C18 v3.37.01 (feature limited)
7
Copyright 2000-2010 Microchip Technology Inc.
8
This version of MPLAB C18 does not support the extended mode
9
and will not perform all optimizations.  To purchase a full
10
copy of MPLAB C18, please contact your local distributor or
11
visit buy.microchip.com.
12

13
WARNING:  This version of MPLAB C18 does not support procedural abstraction.  Procedural abstraction will not be run.
14

15
C:\Test\Test4\CAN_1.X\main.c:74:Error: syntax error
16
make[2]: Leaving directory `C:/Test/Test4/CAN_1.X'
17
make[2]: *** [build/default/production/main.o] Error 3
18
make[1]: Leaving directory `C:/Test/Test4/CAN_1.X'
19
make[1]: *** [.build-conf] Error 2
20
make: *** [.build-impl] Error 2
21

22
BUILD FAILED (exit value 2, total time: 910ms)

Warum?
Gast #3208957
Lesenswert?

War'n Schlampigkeitsfehler. Nach zwei Jahren MPLAB-Abstinenz und 
intensiver Nutzung von Atmel Studio/gcc welche die Schlamperei erlaubt, 
Deklarationen in C mitten in eine Funktion und nicht an den Anfang zu 
schreiben, kombiniert mit falsch gelegten Fährten einiger User im 
Netbeans-Forum passt's jetzt.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren