CDTEclipse+Cygwin:make: execvp: gcc: Permission denied

zjberry 2008-05-07 10:23:48
各位大虾,我是菜鸟,最近在WINDOW下搭建CDTEclipse+Cygwin环境,但是作make时,老提示我make: execvp: gcc: Permission denied,请问是什么原因导致的?源程序就是一个c文件,这里不列出,程序没有编译问题,在UNIX下可以成功make,十分感谢,在线等待答复!:)
makefile文件如下:

#ROOT = /vobs/sepmr/SEPMR/PMTRAF
ROOT = .
SRC = $(ROOT)/src
IN_LIB = $(ROOT)/h
OUTPUT_DIR = $(ROOT)/output
LINK_OPTION = -static

TARGET = $(OUTPUT_DIR)/PMTRAF

# .cpp files
PMTRAF_SRC= $(SRC)/pmtraf.c

# .c files
.SUFFIXES:
.SUFFIXES: .o .cpp .cc

.cpp.o:
#/apps/public/bin/gcc -c -g -I$(IN_LIB) $*.cpp -o $*.o
gcc -c -g -I$(IN_LIB) $*.cpp -o $*.o


OBJS_PMTRAF = $(PMTRAF_SRC:.cpp=.o)

all : $(TARGET)

$(TARGET) : $(OBJS_PMTRAF)
#/apps/public/bin/gcc -g -DLOGS_ENABLED $(LINK_OPTION) $(OBJS_PMTRAF) -o $@
gcc -g -DLOGS_ENABLED $(LINK_OPTION) $(OBJS_PMTRAF) -o $@
@chmod 0755 $@
@echo "\n\n Make PMTRAF successfully completed\n\n"

clean :
#rm -f $(SRC)/*.o
#rm -f $(OUTPUT_DIR)/PMTRAF


# DO NOT DELETE THIS LINE -- make depend depends on it.


...全文
1278 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
masterz 2008-05-10
  • 打赏
  • 举报
回复
试试http://wascana.sourceforge.net/
a distribution of Eclipse CDT with all the tools and libraries necessary to build Windows desktop applications.
The Wascana, CDT Windows Edition is currently composed of the following components. More will likely be added later.

* Sun's redistributable Java Runtime Environment
* Eclipse Platform runtime
* Eclipse CDT runtime
* MinGW toolchain: binutils, gcc, g++, gdb
* MinGW runtime libraries: mingw-runtime, w32api
* MSYS GNU command line environment
* wxWidgets application framework library
* Simple Directmedia Layer library, better known as SDL
zjberry 2008-05-08
  • 打赏
  • 举报
回复
我是在windows下,管理员用户操作的,应该是都有权限的,请求再次帮忙:)
GX198302 2008-05-07
  • 打赏
  • 举报
回复
有操作Debug目录的权限吗? 有exec gcc的权限吗?

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧