gcc

frostflare frostflare@bol.com.br
Thu Mar 25 23:13:00 GMT 2004


Here my problem i can't compile this program at gcc on
cygwin.
It show me this message.

/cygdrive/c/WINDOWS2/TEMP/ccOgyy6e.o: In function 
`main':
/cygdrive/c/WINDOWS2/TEMP/ccOgyy6e.o(.text+0x14):
undefined reference to `printf
'
/cygdrive/c/WINDOWS2/TEMP/ccOgyy6e.o(.text+0x1c): 
undefined reference to `printf
'
collect2: ld returned 1 exit status

And this is the ode of the program that i am trying to
compile. A simple program just to test it.

#include<Stdio.h>
main ()
{
printf("Ola");
printf("Oi");
}
__gccmain()
{
}

exit()
{
  while(1);
}

atexit()
{
  while(1);
}


What is happening? How i fix it?



 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/




More information about the Gcc-help mailing list