maisztaa
Grünschnabel
Hallo Leute.
Erstmal ein Großes Lob an alle die fleißigen Schreiber und Grafiker. Diese Seite hat mir schon oft geholfen.
Nun zu meinem Problem.
Ich habe mir Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2 Installiert (Standartpfad c:\dev-cpp\) und habe es getestet mit dem „Hello World“ Script.
Wenn ich das Script (main.cpp) nur in einer Datei (e:\cpp\test\) gespeichert habe, kann ich es ohne Probleme Kompilieren.
Kann man das Einstellen und wenn ja wo?
Oder muss ich das Makefile von Hand Editieren?
Hier das makefile:
PS: Mein Recher ist ein Pentium 4 3GHz mit 2GB Ram und Win XP SP2 alle Updates.
Erstmal ein Großes Lob an alle die fleißigen Schreiber und Grafiker. Diese Seite hat mir schon oft geholfen.
Nun zu meinem Problem.
Ich habe mir Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2 Installiert (Standartpfad c:\dev-cpp\) und habe es getestet mit dem „Hello World“ Script.
Wenn ich das Script (main.cpp) nur in einer Datei (e:\cpp\test\) gespeichert habe, kann ich es ohne Probleme Kompilieren.
Lege ich vorher ein Projekt (e:\cpp\test\) an und versuche das Script (main.cpp) dann zu Kompilieren, dann bekommen ich folgende Fehlermeldungen:Kompilier-Log
Compiler: Default compiler
Führt g++.exe... aus
g++.exe "E:\Cpp\test\main.cpp" -o "E:\Cpp\test\main.exe" -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" -L"C:\Dev-Cpp\lib"
Ausführung beendet
Kompilierung erfolgreich
Ich sehe wohl das dass Makefile Relative Pfade benutzt und vorher Absolute, aber warum?Kompilier-Log
Compiler: Default compiler
Building Makefile: "E:\Cpp\test\Makefile.win"
Führt make... aus
make.exe -f "E:\Cpp\test\Makefile.win" all
g++.exe -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"
g++.exe: main.cpp: No such file or directory
g++.exe: no input files
make.exe: *** [main.o] Error 1
Ausführung beendet
Kann man das Einstellen und wenn ja wo?
Oder muss ich das Makefile von Hand Editieren?
Hier das makefile:
Vielen Dank schon mal im Voraus.# Project: Projekt1
# 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 = Projekt1.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before Projekt1.exe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "Projekt1.exe" $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
PS: Mein Recher ist ein Pentium 4 3GHz mit 2GB Ram und Win XP SP2 alle Updates.