gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux