Le 26/05/06, deny <[EMAIL PROTECTED]> a écrit :

> bonjour
> le programme suivant me donne une erreur
> error: syntax error before string constant
> pendant la compile :
> 
> gcc -Wall -o taille  taille.c
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> 
> printf("char : %ld octets\n", sizeof(char));
> printf("int : %ld octets\n", sizeof(int));
> printf("long : %ld octets\n", sizeof(long));
> printf("double : %ld octets\n", sizeof(double));
> ~

Ça marchera mieux si tu mets une fonction main ;-)


-- 
Christophe Gaubert
http://ch4tn01r.free.fr/blog
Participez à la liste Avis de citoyens :
http://fr.groups.yahoo.com/group/Avis_de_citoyens/

=========================================
Vous souhaitez acquerir votre Pack ou des Services Mandriva?
Rendez-vous sur "http://store.mandriva.com";.
Rejoignez le club mandrake : http://www.mandrivaclub.com
=========================================

Répondre à