I am getting this error:
~/Distrib$ make all
/usr/bin/g++ -O3 util.cc -I/home/shah/Distrib
util.cc: In function 'into countLines(const char*)':
util:19:8: error: 'exit' was not declared in this scope
exit(1);
^
Makefile:42: recipe for target 'util.o' failed
make: *** [util.o] Error 1
Basically I am trying to install a piece of tomographic software that I downloaded from this webpage
I changed line number 5 in the Makefile to
Home = /home/shah
Show I add the missing header with hashtag sign or without it. I added it the way you typed above in the Makefile and got the same error. Then I removed the hashtag at the beginning and it gave me following error $ Makefile :2: No such file or directory $ make: ***no rule to make target '<stdlib.h>'. Stop.
– Shah5105 Nov 20 '18 at 11:25#include <cstdlib>
into the cc files that fail to compile. – Alvin Liang Nov 20 '18 at 11:25#include <stdlib.h>
or#include <cstdlib>
should goes to *.cc, not Makefile – Alvin Liang Nov 20 '18 at 11:28makedepend
. No need to alter anything. – abu_bua Nov 20 '18 at 12:46