Tag Info

New answers tagged

0

It seems that there's no answer accepted yet... So let's have a try: On my Ubuntu out-of-the-box machine, first I call sudo apt-get install libxt-dev libxaw7-dev Then you've to look for the libraries you just installed. On my machine this is /usr/lib/x86_64-linux-gnu. You get this from apt-cache show libxaw7. With this knowledge, call ./configure ...


1

First take a look in /usr/include or /usr/local/include. If you find nothing there, try : `gcc -print-prog-name=cc1plus` -v This command asks gcc which C++ preprocessor it is using, and then asks that preprocessor where it looks for includes. You will get a reliable answer for your specific setup. Likewise, for the C preprocessor: `gcc ...


4

This should do the trick: for file in $(find /usr/include/ -name '*.h'); do echo "$file,$(grep -c '#define' $file)"; done \ | sort -n -k2 -t, -r Find list all files matching /usr/include/*.h pattern Print the file name, the comma and the number of lines matching '#define' pattern Sort numerically, using a comma as a delimiter by the second field ...



Top 50 recent answers are included