Hallo,
ich habe es ja mittlerweile geschafft, den TCP/IP- und den USB-Stack sowie die Graphic Lib in ein Projekt zusammen zu kompilieren. Jetzt will ich die vorgefertigten Dateien für die Realtime Clock auch noch einbinden.
Dazu habe ich die Header Datei und die .c Datei meinem Projekt hinzugefügt, und die die .h über die main.h eingebunden, genau wie im Beispielprojekt "Graphic MultiApp Demo". Leider bekomme ich immer diesen Fehler:
Executing: "C:\Program Files (x86)\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "rtcc.c" -o"./Objects\rtcc.o" -MMD -MF"./Objects\rtcc.d" -I"." -I"..\Microchip\Include" -I"..\Etherplayer" -g -DPIC32MX460F512L_PIM -Os
rtcc.c:52: error: syntax error before "_time"
rtcc.c:52: warning: data definition has no type or storage class
rtcc.c:53: error: syntax error before "_time_chk"
rtcc.c:53: warning: data definition has no type or storage class
rtcc.c: In function `RTCCProcessEvents':
rtcc.c:88: error: request for member `sec' in something not a structure or union
rtcc.c:88: error: `BYTE' undeclared (first use in this function)
rtcc.c:88: error: (Each undeclared identifier is reported only once
rtcc.c:88: error: for each function it appears in.)
rtcc.c:88: error: syntax error before ')' token
rtcc.c:88: error: `RTCTIME' undeclared (first use in this function)
rtcc.c:89: error: request for member `min' in something not a structure or union
rtcc.c:89: error: syntax error before ')' token
rtcc.c:90: error: request for member `hr' in something not a structure or union
rtcc.c:90: error: syntax error before ')' token
rtcc.c:91: error: request for member `wkd' in something not a structure or union
rtcc.c:91: error: `RTCDATEbits' undeclared (first use in this function)
rtcc.c:92: error: request for member `day' in something not a structure or union
rtcc.c:92: error: syntax error before ')' token
rtcc.c:92: error: `RTCDATE' undeclared (first use in this function)
rtcc.c:93: error: request for member `mth' in something not a structure or union
rtcc.c:93: error: syntax error before ')' token
rtcc.c:94: error: request for member `yr' in something not a structure or union
rtcc.c:94: error: syntax error before ')' token
rtcc.c:97: error: request for member `sec' in something not a structure or union
rtcc.c:97: error: syntax error before ')' token
rtcc.c:98: error: request for member `min' in something not a structure or union
rtcc.c:98: error: syntax error before ')' token
rtcc.c:99: error: request for member `hr' in something not a structure or union
rtcc.c:99: error: syntax error before ')' token
rtcc.c:100: error: request for member `wkd' in something not a structure or union
rtcc.c:101: error: request for member `day' in something not a structure or union
rtcc.c:101: error: syntax error before ')' token
rtcc.c:102: error: request for member `mth' in something not a structure or union
rtcc.c:102: error: syntax error before ')' token
rtcc.c:103: error: request for member `yr' in something not a structure or union
rtcc.c:103: error: syntax error before ')' token
rtcc.c:126: error: request for member `prt00' in something not a structure or union
rtcc.c:126: error: request for member `prt00' in something not a structure or union
rtcc.c:127: error: request for member `prt01' in something not a structure or union
rtcc.c:127: error: request for member `prt01' in something not a structure or union
rtcc.c:128: error: request for member `prt10' in something not a structure or union
rtcc.c:128: error: request for member `prt10' in something not a structure or union
rtcc.c:129: error: request for member `prt11' in something not a structure or union
rtcc.c:129: error: request for member `prt11' in something not a structure or union
rtcc.c:131: error: request for member `mth' in something not a structure or union
rtcc.c:153: error: request for member `day' in something not a structure or union
rtcc.c:154: error: request for member `day' in something not a structure or union
rtcc.c:156: error: request for member `yr' in something not a structure or union
rtcc.c:157: error: request for member `yr' in something not a structure or union
rtcc.c:159: error: request for member `wkd' in something not a structure or union
rtcc.c:174: error: request for member `hr' in something not a structure or union
rtcc.c:175: error: request for member `hr' in something not a structure or union
rtcc.c:177: error: request for member `min' in something not a structure or union
rtcc.c:178: error: request for member `min' in something not a structure or union
rtcc.c:180: error: request for member `sec' in something not a structure or union
rtcc.c:181: error: request for member `sec' in something not a structure or union
rtcc.c: In function `RTCCInit':
rtcc.c:203: error: `OSCCONbits' undeclared (first use in this function)
rtcc.c:216: error: `RTCCON' undeclared (first use in this function)
rtcc.c:222: error: `RTCCONbits' undeclared (first use in this function)
rtcc.c:227: error: `RTCC_DEFAULT_SECOND' undeclared (first use in this function)
rtcc.c:228: error: `RTCC_DEFAULT_MINUTE' undeclared (first use in this function)
rtcc.c:229: error: `RTCC_DEFAULT_HOUR' undeclared (first use in this function)
rtcc.c:230: error: `RTCC_DEFAULT_WEEKDAY' undeclared (first use in this function)
rtcc.c:231: error: `RTCC_DEFAULT_DAY' undeclared (first use in this function)
rtcc.c:232: error: `RTCC_DEFAULT_MONTH' undeclared (first use in this function)
rtcc.c:233: error: `RTCC_DEFAULT_YEAR' undeclared (first use in this function)
rtcc.c: In function `RTCCSet':
rtcc.c:255: error: `BYTE' undeclared (first use in this function)
rtcc.c:255: error: syntax error before ')' token
rtcc.c:255: error: `RTCTIME' undeclared (first use in this function)
rtcc.c:255: error: request for member `sec' in something not a structure or union
rtcc.c:256: error: syntax error before ')' token
rtcc.c:256: error: request for member `min' in something not a structure or union
rtcc.c:257: error: syntax error before ')' token
rtcc.c:257: error: request for member `hr' in something not a structure or union
rtcc.c:258: error: `RTCDATEbits' undeclared (first use in this function)
rtcc.c:258: error: request for member `wkd' in something not a structure or union
rtcc.c:259: error: syntax error before ')' token
rtcc.c:259: error: `RTCDATE' undeclared (first use in this function)
rtcc.c:259: error: request for member `day' in something not a structure or union
rtcc.c:260: error: syntax error before ')' token
rtcc.c:260: error: request for member `mth' in something not a structure or union
rtcc.c:261: error: syntax error before ')' token
rtcc.c:261: error: request for member `yr' in something not a structure or union
rtcc.c: In function `RTCCUnlock':
rtcc.c:290: error: `SYSKEY' undeclared (first use in this function)
rtcc.c:292: error: `RTCCONSET' undeclared (first use in this function)
rtcc.c: At top level:
rtcc.c:323: error: conflicting types for 'RTCCSetBinSec'
rtcc.c:227: error: previous implicit declaration of 'RTCCSetBinSec' was here
rtcc.c:343: error: conflicting types for 'RTCCSetBinMin'
rtcc.c:228: error: previous implicit declaration of 'RTCCSetBinMin' was here
rtcc.c:363: error: conflicting types for 'RTCCSetBinHour'
rtcc.c:229: error: previous implicit declaration of 'RTCCSetBinHour' was here
rtcc.c:431: error: conflicting types for 'RTCCSetBinDay'
rtcc.c:231: error: previous implicit declaration of 'RTCCSetBinDay' was here
rtcc.c:468: error: conflicting types for 'RTCCSetBinMonth'
rtcc.c:232: error: previous implicit declaration of 'RTCCSetBinMonth' was here
rtcc.c:488: error: conflicting types for 'RTCCSetBinYear'
rtcc.c:233: error: previous implicit declaration of 'RTCCSetBinYear' was here
Irgendwie erkennt der nicht, dass die
extern Datentypen eingbunden werden sollen. Was ist denn da der Fehler? Für mich sieht alles so aus wie im Beispiel...
Grüße
Stefan