Periergh (?) symperifora toy gcc

Anthony Petropoulos anthony at rainbow.cs.unipi.gr
Mon Jun 26 01:56:52 EEST 2000


  Estw elaxisto programmataki:

#include <stdio.h>
main() {
	float a;
	a=atof("123.45");
	printf("%f\n", a);
}


  To parapanw 6-liner kanei kanonika compile alla bgazei garbage ws
apotelesma. To problhma dior8wnetai kanontas 
#include <stdlib> 
opoy kai einai orismenh h atof.

  Kai h profanhs erwthsh: giati to epa8e ayto o linker? (h atof einai sthn
glib etsi den einai? Apo oti eida sto stdlib.h an exeis optimization sthn
bazei inline alla ayto den dikaiologei tipota).

  Apo dw kai pera gcc -Wall :-)

Antwnhs


--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list