Martin Michlmayr schreef: >> Thanks for this report/patch. At the moment, gcc-snapshot > >> 20070326-1 seems not to be available for i386¹ so at the moment I >> can not test it myself. > I uploaded a new version which finally builds on x86, so this will > show up in the archive within the next few days.
Indeed :-) > Note that some other header files got cleaned up since I filed my bug > so the patch I sent might need an update. It seems that now "#include <string.h>" is also needed to compile. *** /tmp/picprog-1.8.3.orig/program.cc 2007-06-09 12:08:32.570077447 +0200 --- program.cc 2007-06-09 11:58:07.546671127 +0200 *************** *** 27,35 **** --- 27,37 ---- */ + #include <cstdlib> #include <iostream> #include <string> + #include <string.h> #include <unistd.h> #include <sysexits.h> #include <sys/ioctl.h> I still get some warnings, but it seems to compile fine. pts/3 jan /tmp/picprog-1.8.3$ make clean rm -f core main.o picport.o hexfile.o program.o picprog pts/3 jan /tmp/picprog-1.8.3$ make dep g++ -M -O2 -Wall -W -Wwrite-strings *.cc > .depend pts/3 jan /tmp/picprog-1.8.3$ make g++ -O2 -Wall -W -Wwrite-strings -c -o main.o main.cc g++ -O2 -Wall -W -Wwrite-strings -c -o picport.o picport.cc picport.cc: In constructor 'picport::picport(const char*, bool, bool)': picport.cc:181: warning: suggest parentheses around && within || picport.cc: In static member function 'static void picport::delay(long int)': picport.cc:263: warning: suggest parentheses around && within || picport.cc:283: warning: suggest parentheses around && within || g++ -O2 -Wall -W -Wwrite-strings -c -o hexfile.o hexfile.cc hexfile.cc: In member function 'int hexfile::load(const char*)': hexfile.cc:415: warning: suggest parentheses around + or - in operand of & hexfile.cc:544: warning: suggest parentheses around + or - in operand of & hexfile.cc: In member function 'int hexfile::program(const char*, bool, bool, bool, bool)': hexfile.cc:1108: warning: suggest parentheses around arithmetic in operand of | g++ -O2 -Wall -W -Wwrite-strings -c -o program.o program.cc g++ -s main.o picport.o hexfile.o program.o -o picprog pts/3 jan /tmp/picprog-1.8.3$ These warnings can probably be solved by placing parentheses, but I'm not sure about where exactly to place them. Anyone suggestions? -- Met vriendelijke groetjes - Jan Wagemakers - ... Linux inside -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]