My program wants /lib/cpp ! Where can I get it from ?
Ans: cpp appears in /usr/lib/gcc-lib/i486-linux/2.6.2 (the gcc version numbers may have changed when you read this) You need to do the following % cd /lib; ln -sf /usr/lib/gcc-lib/i486-linux/2.6.2/cpp ** Change the 2.6.2 to whatever version of GCC your are using. ** Change the i486 to i386 if using the 386 compiler A possible alternative is this: % cat > /lib/cpp #!/bin/sh exec cc -E “$@” Ctrl-D[EOF] % chmod 755 /lib/cpp This way /lib/cpp won’t stop working when you switch to a newer gcc version and delete the old one. However the former command (i.e the link) will read from stdin, while the latter will complain about a missing filename argument (unless you explicitly specify – as stdin). Any program that uses /lib/cpp as a filter without any arguments will therefore fail. For example “xrdb” won’t work (the error is silently ignored). Because of these differences, it is advisable to remember to update the link instead.