Bonjour,
J'ai 2 machines : 
machine 64 : Fedora 8 :
	
	1 2
   | $ uname -a
Linux sbtn155.#### 2.6.23.1-49.fc8 #1 SMP Thu Nov 8 22:14:09 EST 2007 x86_64 x86_64 x86_64 GNU/Linux  | 
 machine 32 : Fedora 3 :
	
	Linux sbtn211.#### 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 i686 i686 i386 GNU/Linux
 J'ai un programme en C. Je le compile avec l'option -m32 (compatibilite 32bit si j'ai bien compris ...) sur mon 64bit. :
	
	1 2
   | gcc -Wall -I. -std=c99 -g -m32 -c e6d_distance.c -o e6d_distance.o
gcc -Wall -I. -std=c99 -g -m32 e6d_distance.o -o e6d_distance -lm  | 
 Il marche normalement sur le 64bit et sur le 32bit il me fait : 
	
	1 2 3
   | $ ./e6d_distance
Floating exception
$  | 
 version gcc sur le 64bit :
	
	1 2 3 4 5
   | $ gcc --version
gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  | 
 sur le 32bit :
	
	1 2 3 4 5
   | $ gcc --version
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  | 
 
J'ai fait un gdb. J'ai mis un break des le main(), mais il plante avant meme le main().
Quelqu'un saurait d'ou vient le problème ? Merci.
						
					
Partager