From: Beau E. C. <be...@ha...> - 2005-10-29 18:00:01
|
Hi - Under cygwin: beau@jeff ~/junk/terr $ uname -a CYGWIN_NT-5.0 jeff 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin using the latest and greatest sdcc: beau@jeff ~/junk/terr $ sdcc -v SDCC : pic16/pic14 2.5.4 #1135 (Oct 29 2005) (MINGW32) This source with two errors: beau@jeff ~/junk/terr $ cat terr.c #include <sdcc-lib.h> #include <pic18fregsxx.h> int 16BIT; void main( void ) { 16BIT = 1; } Does NOT print the errors: beau@jeff ~/junk/terr $ sdcc -mpic16 -p18f452 --verbose -c terr.c sdcc: Calling preprocessor... sdcc: Generating code... But does set the return code to 1: beau@jeff ~/junk/terr $ echo $? 1 UNLESS I --use-stdout: beau@jeff ~/junk/terr $ sdcc -mpic16 -p18f452 --verbose --use-stdout -c terr.c terr.c:2:28: pic18fregsxx.h: No such file or directory sdcc: Calling preprocessor... sdcc: Generating code... Processor: 18f452 terr.c:4: syntax error: token -> '16' ; column 6 stderr seems to be working: beau@jeff ~/junk/terr $ echo "hi" > /dev/stderr hi Under natiive Linux, with the same sdcc version, all is well: beau@cathy:~/junk/terr> uname -a Linux cathy 2.6.11.4-21.9-usbdbg #1 Fri Sep 9 08:34:38 HST 2005 i686 i686 i386 GNU/Linux beau@cathy:~/junk/terr> sdcc -v SDCC : pic16/pic14 2.5.4 #1135 (Oct 29 2005) (UNIX) beau@cathy:~/junk/terr> sdcc -mpic16 -p18f452 --verbose -c terr.c Processor: 18f452 sdcc: Calling preprocessor... terr.c:2:28: pic18fregsxx.h: No such file or directory sdcc: Generating code... terr.c:4: syntax error: token -> '16' ; column 6 Be this a cygwin error (or some error in my cygwin setup), or something in sdcc? I know I have been getting errors under cygwin in prior versions of sdcc and will try to reinstall a previous version to show you if this would help. Aloha => Beau; be...@ha... 2005-10-29 |