This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]