g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o main.o main.cc g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o picport.o picport.cc g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o hexfile.o hexfile.cc g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o program.o program.cc program.cc: In member function ‘void program::init(char**)’: program.cc:60: error: ‘strrchr’ was not declared in this scope program.cc:64: error: ‘strlen’ was not declared in this scope program.cc:65: error: ‘strcpy’ was not declared in this scope program.cc: In function ‘void simple_pager(const char*)’: program.cc:368: error: ‘strchr’ was not declared in this scope program.cc: In member function ‘void program::usage(option*, char*)’: program.cc:404: error: ‘strdup’ was not declared in this scope program.cc:415: error: ‘strlen’ was not declared in this scope program.cc:417: error: ‘strchr’ was not declared in this scope program.cc:457: error: ‘exit’ was not declared in this scope make: *** [program.o] Error 1 make: *** Waiting for unfinished jobs.... Reproducible: Always
Created attachment 150653 [details, diff] picprog-1.8.3-gcc43.patch Fixes the problem. Snatched from Debian.
Fixed. Thanks for the debian patch. I used sed instead and slightly modified the patching, but it's the same idea. Denis.