Fejl ved c programmering under linux med gcc
Hejsa !Jeg har en standard Debian woody med gcc. Efter installationen, ville jeg kompilere flg. kode:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *lfspartition;
printf ("Enter the full path of the lfs partiotions mount point:" );
scanf ("%s" , lfspartition );
printf ("Your partition is located at: %s", lfspartition);
hvilket resulterede i flg. fejl:
alfs.c:8: parse error before string constant
alfs.c:8: warning: data definition has no type or storage class
alfs.c:9: parse error before string constant
alfs.c:9: warning: data definition has no type or storage class
alfs.c:10: parse error before string constant
alfs.c:10: warning: data definition has no type or storage class
hvorfor det ? ser ud til at den ikke kan lide strenge....
- kondi.koder :-)