|
From: <co...@ps...> - 2003-09-30 09:31:22
|
Hi, ALL!
Strange problem with DEV-CPP 4.9.8.3.
I use precompiler directive #warning to comment
important points in code.
Dev-Cpp 4.9.8.3 makes bad makefile when #warning in used.
Test source code:
------------------------------------------
int main(int argc, char *argv[])
{
#warning "MyComment"
return 0;
}
-------------------------------------------
built makefile
-------------------------------------------
# Project: Warn2Mak
# Makefile created by Dev-C++ 4.9.8.3
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = main.o $(RES)
LINKOBJ = main.o $(RES)
LIBS = -L"D:/LANG/MinGW3001/lib"
INCS = -I"D:/LANG/MinGW3001/include"
CXXINCS = -I"D:/LANG/MinGW3001/include/c++" -I"D:/LANG/MinGW3001/include"
BIN = Warn2Mak.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
.PHONY: all all-before all-after clean clean-custom
all: all-before Warn2Mak.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(LINKOBJ)
$(CC) $(LINKOBJ) -o "Warn2Mak.exe" $(LIBS)
main.o: main.c main.c:3:2: warning: #warning "MyComment"
$(CC) -c main.c -o main.o $(CFLAGS)
--------------------------------------------
I attach test project.
Any suggestions?
Thanks in advance
Collins
|