简体   繁体   English

makefile:无法构建项目

[英]makefile: cannot build project

I have the following makefile: 我有以下makefile:

CC = /usr/bin

CPPFLAGS = -x c++
...

When I build my project with this makefile I get: 当我用这个makefile构建我的项目时,我得到:

make: execvp: /usr/bin/: Permission denied

There is a way to specify root permission in the makefile ? 有一种方法可以在makefile中指定root权限吗? Or other solution ? 或其他解决方案?

Are you trying to run /usr/bin ? 你想尝试运行/usr/bin吗? CC is usually set to a C compiler, not a directory. CC通常设置为C编译器,而不是目录。

Either comment out the CC line or set it to be the full path to the C compiler. 注释CC行或将其设置为C编译器的完整路径。

The shell command which cc will give you a path to the C compiler shell命令which cc将为您提供C编译器的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM