Article View: es.comp.os.linux.programacion
Article #14937Re: compilar en c
From: batsman
Date: Sat, 02 Sep 2000 23:34
Date: Sat, 02 Sep 2000 23:34
55 lines
2683 bytes
2683 bytes
-----BEGIN PGP SIGNED MESSAGE-----
>> El teclado de Sergi fue pose�do por un ser maligno,
>> que escribi� en es.comp.os.linux.programacion:
>
>Como se compila este programa en linux?, no tengo ni idea de compilar un
>programa propio en linux.
>
>#include"stdio.h"
Ser�a m�s bien
#include <stdio.h>
para usar la cabecera de la lib C (si no, est�s indicando que use el
stdio.h del directorio actual).
>main()
>{
> printf("Hello world\n");
>}
cat > hello.c
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello, World!\n");
}
^D
gcc -o hello hello.c
- --
_ _
| |__ __ _| |_ ___ _ __ ___ __ _ _ __
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
Real email: batsman dot geo at yahoo dot com
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Public key via email: send mail with Subject: [PGPKEY]
iQEVAwUBObGQbr0Y27yr0iefAQETHggAkaJLbdWq4g4HkDdzsVAJnLz546zI/Pt2
R8UfJrlI070gSqR1a8uGxWqUbzeJXZGkW5ekuNIYWzMXatMAzOS7jj5ZnbRWVUej
KLe5x8dQ68qctuW05yJsr8mGsjb1aowuiMDvJlvRrakcAGctybLBi+p72fNdSoLk
KZ3ZhyPrYWOHlx0AIi9dM9RN4Ya/3J73LVzkkHolez/Fmo4t1y0wLdPui4aVFcKg
VFlMEEl1FouWUOJJd9+eAudSIhYJ9+WOZ0IJtXndBSMOa9YVu0kftl6JXgvOENmH
SiQxe+dx15dzhTWzSAYgbOHNBmZ1fO98rJ4ovunGh8nAS/va/WxvFQ==
=hMis
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<j93so8.hu6.ln@simpsons4ever>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!195.40.0.160.MISMATCH!easynet-tele!easynet.net!newsfeed.icl.net!oleane.net!oleane!jussieu.fr!news.rediris.es!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mailReferences:
<39AED67F.EFC7798@ozu.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,771f1a1ed508fc93 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2000-09-02 16:33:07 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!195.40.0.160.MISMATCH!easynet-tele!easynet.net!newsfeed.icl.net!oleane.net!oleane!jussieu.fr!news.rediris.es!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mail From: batsman@simpsons.for.ever (batsman) Newsgroups: es.comp.os.linux.programacion Subject: Re: compilar en c References: <39AED67F.EFC7798@ozu.es> Organization: Debian 2.2 Potato (disponible el 15 de agosto :-) Reply-To: see_signature-mira_firma-lire_signature-lesen_sie_die_Unterschrift-bIng_yIlaD Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.6.2 (Linux) Message-ID: <j93so8.hu6.ln@simpsons4ever> Lines: 55 Date: Sat, 02 Sep 2000 23:34:00 GMT NNTP-Posting-Host: 193.153.116.100 X-Complaints-To: usenet@teleline.es X-Trace: telenews.teleline.es 967937640 193.153.116.100 (Sun, 03 Sep 2000 01:34:00 MET DST) NNTP-Posting-Date: Sun, 03 Sep 2000 01:34:00 MET DST