Output-File
-
Hallo,
wie kann ich mit Microsoft Visual C++ oder mit dem Borland C++ Compiler eine .o -Datei erstellen.
mit diesem gcc-compiler funzt es irgendwie nicht.komm net damit zu recht.
Danke
-
Hallo,
fuer den gcc:
gcc -c test.c
erzeugt dir eine test.o
Auszug aus der Manpage:
Manpage GCC(1): gcc, g++ - GNU project C and C++ Compiler (gcc-3.2.1) schrieb:
-c Compile or assemble the source files, but do not link. The com-
piler output is an object file corresponding to each source
file.By default, GCC makes the object file name for a source file by
replacing the suffix.c',
.i',.s', etc., with
.o'. Use -o
to select another name.GCC ignores any unrecognized input files (those that do not re-
quire compilation or assembly) with the -c option.mfg
v R
-
danke. geht es auch mit visual c++ oder borland c++?
-
BEIM GCC Compiler kommt immer folgende meldung
djgpp not defined.
was soll das?egal wie ich es mache.
WIe geht es mit Visual c++ oder borland.BITTE
-
borland (5.5, die Command-line Version)
bcc32 -c test.cpp
gibt ein test.obj
mfg
Martin
-
ich will aber eine .o datei
output!!!!!!!!!!!!!!!!!
-
dann benenn das file halt in test.o um! Ist eigentlich egal. das o steht eigentlich soweit ich weiß ebenfalls für object, nicht für output.
geloescht
-
beim studio: die pfade stehen in der vcvars32.bat.. die starten und dann cl.exe deinedatei.cpp.. gibt den vollen compilevorgang
-
beim djgpp habe ich den eindruck, du hast genau das nicht gemacht: die pfade zum compiler/linker nicht definiert.
schreib dir ne kleine batch datei mit folgenden zeilen:
set PATH=D:\DJGPP\BIN SET DJGPP=D:\DJGPP\DJGPP.ENV SET LIBRARY_PATH=D:\DJGPP\LIB
natürlich an deinen djgpp installation angepasst, und dann starten, konsole NICHT schließen und dann gleich compilieren.