Daniel Lord schrieb:
Hallo Ashley,
On Tue, Dec 14, 2004 at 08:55:06AM +0100, Ashley Enowmpey wrote:
Ich habe folgende code mit nur einen printf("") also: Test.c
#include
int main(void) { printf("Hallo Linux!!\n");
return 0; }
mit dem Befehle: compilieren: uvdata@test3/home/uvdata/PTP> gcc -Wall -ggdb -o test -c Test.c
^^ da liegt dann auch dein Fehler.
gcc -Wall -g -o test Test.c
sollte das heißen. In der Manpage steht dazu:
When you invoke GCC, it normally does preprocessing, compilation, assembly and linking. The ``overall options'' allow you to stop this process at an intermediate stage. For example, the -c option says not to run the linker. Then the output consists of object files output by the assembler.
Dann viel Spaß beim programmieren.
Greetings Daniel
BTW: da "test" ein Shell-Befehl ist, ist dieser populäre Name hier allerdings auch nicht so geeignet, es könnte mal zu eigenartigen Verwechslungen kommen, je nach Aufbau Deiner PATH-Variablen. Kann nur davon abraten, ein ausführbares Programm/script "test" zu nennen. Gruß -- Joerg Thuemmler listen@vordruckleitverlag.de