[linux] gcc

Andrej Hosna hosna na ibl.sk
Pátek Srpen 11 09:06:08 CEST 2000


On Fri, 11 Aug 2000, you wrote:
> Zadal som:
> $echo "init main() { return 0;}">test.c 
> $ gcc test.c 
> 
> A vypisalo mi toto:
> test.c:1: parse error before `main'     
> 
> Co s tymto ?
ak si tam naozaj napisal to co vravis tak ani sa necudujem...
ono skus to opisat tak ako ti to napisal niteshadow...
to znamena  echo "int main() { return 0;}">test.c
a NIE echo "init main() { return 0;}">test.c !!!

init a int ... to je tak trosku dost rozdiel , a int je ta spravna volba...

a ked mas silne nutkanie pouzit ako typ navratovej hodnoty mainu init tak to
sprav ze: echo -e "#define init int\ninit main() { return 0;}">test.c :))

> > > checking for gcc... gcc
> > > checking whether the C compiler (gcc  ) works... no
> > > configure: error: installation or configuration problem: C compiler cannot create executables.     
> > > pri kompilacii programov?

> > skus spravit toto:
> > $ echo "int main() { return 0; }" > test.c
> > $ gcc test.c





/* Andrej Hosna - http://people.ibl.sk/adino - +421 903 852 696
 IBL Software Engineering - http://www.ibl.sk - +421 7 43427214*/



Další informace o konferenci linux