C: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=Hello World=
=Hello World=
==Sourcecode==
*[[C - Compilieren]]
*cat hello-world.c
*[[C - externe Programmaufruf]]
<pre>
*[[C - dynamic linked vs. static linked]]
#include <stdio.h>
 
int main(void)
{
    puts("Hallo Welt!");
}
</pre>
==Compile==
*gcc  hello-world.c -o hello-world
==Result==
file *
hello-world:  ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked ...
hello-world.c: C source, ASCII text
=Run=
*./hello-world
Hallo Welt!

Aktuelle Version vom 18. September 2022, 16:35 Uhr