Z
ok,
es hilft eigentlich wenn Du mal einen blick auf
http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/
wirfst...
Ansonsten hier mal ein Beispiel:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Property_Pages\Makefile.win"
Führt make clean aus
rm -f main.o property_sheet.o Property_Pages_private.res Property_Pages.exe
g++.exe -D__DEBUG__ -c main.cpp -o main.o -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" -O3 -g3
g++.exe -D__DEBUG__ -c property_sheet.cpp -o property_sheet.o -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" -O3 -g3
windres.exe -i Property_Pages_private.rc --input-format=rc -o Property_Pages_private.res -O coff
g++.exe -D__DEBUG__ main.o property_sheet.o Property_Pages_private.res -o "Property_Pages.exe" -L"C:/Dev-Cpp/lib" -mwindows ../lib/libcomdlg32.a ../lib/libcomctl32.a -g3
Ausführung beendet
Kompilierung erfolgreich
Zuerst wird ein clean ausgeführt,
Dann in den ersten drei:
erzeugung der main obj file, schau Dir dabei mal die -I statements an
erzeugung der property sheet obj file, gleiches spiel
resourcen werden erzeugt,..
zum Schluss wird nur noch gelinkt,..
und hier nochmal eine Makefile
# Project: Property_Pages
# Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES = Property_Pages_private.res
OBJ = main.o property_sheet.o $(RES)
LINKOBJ = main.o property_sheet.o $(RES)
LIBS = -L"C:/Dev-Cpp/lib" -mwindows ../lib/libcomdlg32.a ../lib/libcomctl32.a -g3
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 = Property_Pages.exe
CXXFLAGS = $(CXXINCS) -O3 -g3
CFLAGS = $(INCS) -O3 -g3
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before Property_Pages.exe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): (OBJ)(OBJ)
(OBJ)(CPP) $(LINKOBJ) -o "Property_Pages.exe" $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
property_sheet.o: property_sheet.cpp
$(CPP) -c property_sheet.cpp -o property_sheet.o $(CXXFLAGS)
Property_Pages_private.res: Property_Pages_private.rc Unbenannt2.rc
$(WINDRES) -i Property_Pages_private.rc --input-format=rc -o Property_Pages_private.res -O coff
Mit dem Link und dem Beispiel solltest Du keine Schwierigkeiten mehr haben Dein Projekt fertig zu kompilieren.
Sei gegrüßt