The Little Guy Posted December 4, 2008 Share Posted December 4, 2008 I can't get this to compile, I am getting this error: C:\Dev-Cpp\projects\Greetings\Makefile.win [build Error] [main.o] Error 1 [/m] #include <conio.h> #include <stdio.h> int main(){ printf("Greetings Earthlings.\n"); printf("All your base belong to us!"); getch(); } Here is the Makefile.win: # Project: Greetings # Makefile created by Dev-C++ 4.9.9.2 CPP = g++.exe CC = gcc.exe WINDRES = windres.exe RES = OBJ = main.o $(RES) LINKOBJ = main.o $(RES) LIBS = -L"C:/Dev-Cpp/lib" INCS = -I"C:/Dev-Cpp/include" CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" BIN = Greetings.exe CXXFLAGS = $(CXXINCS) CFLAGS = $(INCS) RM = rm -f .PHONY: all all-before all-after clean clean-custom all: all-before Greetings.exe all-after clean: clean-custom ${RM} $(OBJ) $(BIN) $(BIN): $(OBJ) $(CC) $(LINKOBJ) -o "Greetings.exe" $(LIBS) main.o: main.c $(CC) -c main.c -o main.o $(CFLAGS) Im not sure what else may be needed. Thanks For the Help! Quote Link to comment https://forums.phpfreaks.com/topic/135465-dev-c-error/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.