小编Sha*_*105的帖子

Makefile 42:目标“util.o”的配方失败

我收到此错误:

~/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
Run Code Online (Sandbox Code Playgroud)

基本上我想安装一个我从这个网页下载的断层扫描软件

我将 Makefile 中的第 5 行更改为

Home = /home/shah 
Run Code Online (Sandbox Code Playgroud)

Makefile 更改

compiling c++ makefile

2
推荐指数
1
解决办法
3万
查看次数

标签 统计

c++ ×1

compiling ×1

makefile ×1