A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hi all:
I downloaded PICC-18 and installed it on c:\ht-pic18.. I
also followed the manual to integrate it with MPLAB.. yet I'm not able to get a simple C
file compiled.. this is even if I run it completely from the DOS window.. (I'm using
windows2000)
The command I ran:
C:\>C:\HT-PIC18\BIN\PICC18.EXE -V -fakelocal -D24 -E
-18C658 -C C:\HT-PIC18\HT.C
> err.txt HI-TECH C COMPILER (Microchip PIC18) V8.01 PL1 Copyright (C) 1984-2001 HI-TECH SOFTWARE And I'm also attaching the ht.c and err.txt for your
perusal
Thanks!
Charlie
| |||
| |||
|
Compiler not installed properly - error code (4) clist.exe C:\HT-PIC18\HT.C C:\HT-PIC18\HT.lst cpp.exe -DHI_TECH_C -D_MPC_ -SP1,1,1,1,1,1,1 -IC:\HT-PIC18\INCLUDE -S1,2,2,4,3,3 -E1 -D_18C658 -D_PIC18 C:\HT-PIC18\HT.C -D_HTC_VER_MAJOR_=8 -D_HTC_VER_MINOR_=1 _TS.AAA p1.exe -E1 -M -B -QCu,const -QL,low_priority -Gstrings,const -Y -r -u _TS.AAA _TS.AAB _TS.AAC C:\HT-PIC18\INCLUDE\pic18xx8.h: 752: qualifiers redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1451: undefined identifier: RXM1EIDL (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1451: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1452: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1453: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1454: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1455: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1456: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1457: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1458: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1460: undefined identifier: RXM1EIDH (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1460: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1461: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1462: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1463: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1464: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1465: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1466: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1467: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1484: undefined identifier: RXM0EIDL (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1484: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1485: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1486: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1487: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1488: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1489: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1490: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1491: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1491: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1493: undefined identifier: RXM0EIDH (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1493: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1494: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1495: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1496: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1497: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1498: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1499: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1500: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1500: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1524: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1533: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1558: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1560: undefined identifier: RXF4EID8 (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1560: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1561: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1562: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1563: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1564: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1565: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1566: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1567: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1567: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1592: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1601: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1626: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1635: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1660: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1669: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1687: undefined identifier: RXF0EID0 (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1687: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1688: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1689: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1690: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1691: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1692: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1693: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1694: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1694: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1696: undefined identifier: RXF0EID8 (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1696: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1697: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1698: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1699: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1700: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1701: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1702: simple integer expression required (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1703: type redeclared (error) C:\HT-PIC18\INCLUDE\pic18xx8.h: 1703: simple integer expression required (error) del _TS.AAA del _TS.AAB del _TS.AAC del D:\DOCUME~1\CHARLI~1\LOCALS~1\Temp\l.obj del _TS.AAD |
|
It
looks like there's some problem with the header file pic18xx8.h. If
you
can
have a look at that and see if there's anything odd, especially at
line
752. Quite often a single error on one line will spark
off a long chain of
error
messages.
Possibly this header has become corrupted, and you'll have to
get a new
copy.
The
only other thing is to check is that none of the names you're using
like
'value' and 'delay' are used anywhere in the headers. I'd have
expected the errors to give line refs in your code if that were
the case,
but the
compiler may work in a slightly different way from others I've
used.
David
P.
-----Original Message-----
From: Charlie Wu [mailto:x...@yahoo.com] Sent: 17 September 2001 16:32 To: PICLIST YAHOO Subject: [piclist] can't get picc-18 to work
|