安逸. 发表于 2022-4-3 14:02:02

请问下“DEV c++”出现这个怎么搞?

# Project: 项目3
# Makefile created by Dev-C++ 5.11

CPP      = g++.exe
CC       = gcc.exe
WINDRES= windres.exe
OBJ      = int.o
LINKOBJ= int.o
LIBS   = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc
INCS   = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS= -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN      = 项目3.exe
CXXFLAGS = $(CXXINCS)
CFLAGS   = $(INCS)
RM       = rm.exe -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

clean: clean-custom
        ${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
        $(CC) $(LINKOBJ) -o $(BIN) $(LIBS)                           <-这行显示红色,显示这个界面就编译不了。。。。无语。。求助

int.o: int.c
        $(CC) -c int.c -o int.o $(CFLAGS)

安逸. 发表于 2022-4-3 14:06:47

E:\INS

安逸. 发表于 2022-4-3 14:07:44

求助,555

jackz007 发表于 2022-4-3 15:15:39

      试试用命令行编译
gcc -o int int.c
页: [1]
查看完整版本: 请问下“DEV c++”出现这个怎么搞?