Dev C++ Make File.win

Code (.o), and a file with linking instructions (makefile.win). Only the.c file must be explicitly created –the remaining files are automatically created by Dev-C. When creating a project, Dev-C asks the user where the files must be stored. It is convenient.

Makefile
  1. This happens every single time i try to compile any project whether it would be a template given by Dev-C when creating a windows application or something I have been working on.I save all the files like the source, resource, header and all the files created by the compiler in the same directory, 'C:Dev-Cpp' from which I create a another.
  2. Feb 18, 2006  GameDev.net is the community for game development. Game Developers participate in forums, tutorials, blogs, projects, and more.
Dev c++ build error 1 makefile.win
This repository has been archived by the owner. It is now read-only.
Permalink

Join GitHub today

Linux C++ Makefile Tutorial

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up
Branch:master
C++ makefile template
Find file Copy path
Fetching contributors…

Dev C++ 5.11

# Project: demo
# Makefile created by Dev-C++ 5.9.2
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = demo.o
LINKOBJ = demo.o
LIBS = -L'D:/Programs/Dev-Cpp/MinGW64/lib32' -L'D:/Programs/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32' -static-libgcc -lbgi -lgdi32 -luser32 -lwinmm -m32
INCS = -I'D:/Programs/Dev-Cpp/MinGW64/include' -I'D:/Programs/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include' -I'D:/Programs/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.8.1/include'
CXXINCS = -I'D:/Programs/Dev-Cpp/MinGW64/include' -I'D:/Programs/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include' -I'D:/Programs/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.8.1/include' -I'D:/Programs/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++'
BIN = demo.exe
CXXFLAGS = $(CXXINCS) -m32
CFLAGS = $(INCS) -m32
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)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
demo.o: demo.cpp
$(CPP) -c demo.cpp -o demo.o $(CXXFLAGS)
  • Copy lines
  • Copy permalink

Dev C++ Makefile.win Error 1

Whaaat?? 18mb?? This can't be! Basically all what I am loading is 2 small sprite grids with ~70 Kbs altogether. Maybe I am just loading them more than once resulting in that ...
So, I tried Orwel's Dev-C++ 5.4.2 and it compiled. However, when I come to run the exe, nothing opens. Tried using debugging mode, and some very weird stuff happened.
1-I placed breakpoints all over the 2 files (the main and the header file), but the debugger would ignore everything, and jumps into this line:
http://i33.servimg.com/u/f33/16/27/78/35/screen12.png
2-I clicked on 'next line', and the debugger moved normally to the next line:
http://i33.servimg.com/u/f33/16/27/78/35/screen13.png
3-I clicked on 'next line' once more expecting that the debugger would enter the main function, but then:
http://i33.servimg.com/u/f33/16/27/78/35/screen15.png
It jumped to the closing bracket of the function 'breakpoints invalid'...
4-Tried clicking 'next line' 3 more times, and I received a 'segmentation fault':
http://i33.servimg.com/u/f33/16/27/78/35/screen16.png
5-Clicking on ok with 'show CPU window' checked:
http://i33.servimg.com/u/f33/16/27/78/35/screen17.png
:
Thanks ne555, I appreciate your time and dedication =)