
"Chun Ki Shin" <shintuna@hotmail.com> [Wed, 10 Sep 2003 01:12:43 -0400]:
I changed the debugging with -g instead -O, but still I got the following error message.
That option has nothing to do with the error message. -g instructs the compiler to generate debugging info while -On set the optimization level, where n ranges from 0 (no optimization) to 2 (max. optimization). If you want a debugable program, use '-O0 -g' if you want a well optimized program use '-O2'
gcc -g -o memo3 memo3.o -lXm -lXt -lX11 /usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld: memo3.o: Relocations in generic ELF (EM: 2) memo3.o: could not read symbols: File in wrong format collect2: ld returned 1 exit status make: *** [memo3] Error 1
You didn't delete the old object files that obviously were compiled on another Platform. Delete them via 'make clean' and the next call of make should run without problems. Philipp [totally useless full quote *including signatures* disposed]