Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

My program wants /lib/cpp ! Where can I get it from ?

CPP Lib program wants
0
Posted

My program wants /lib/cpp ! Where can I get it from ?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.