Sven Schüle wrote:Hi Pradu,
there are many possible reasons including different installed versions of glibc or pthread library, or similar things. Also using -g and -O3 together might produce surprising results. Maybe -O3 optimizes in a machine-specific way?
Is there anyway to dynamically link to these standard libraries? Oh and I just want to compile for x86 and x86_64 platforms that support SSE1,2,3 and MMX so I'm assuming that the same platform is used and that O3 won't optimize differently for different OS.
Here's a link to Buzz sources with makefile if it helps to find out what goes wrong. I think POSIX thread support should be available on all popular UNIX OSs today but perhaps different versions supported could cause problems I guess?
Posting error messages you get might be helpful.
Memory Access Error for Ubuntu compile on Suse.
Which Ubuntu and Suse versions are involved?
SuSE 10.2
Ubuntu 7.04
On your last question: no, a "generic UNIX compile" which runs on completely different UNIX systems is not possible in general. Executables have different formats on the various UNIX systems, and there may also be many other reasons, e.g. availability of system libraries.
Sven
Ah that blows :\. So I suppose I must make various compiles for the various UNIX OS's. Are you aware if GCC can cross-compile for different OSs? I have so far only found cross-compilation options for different types of processors.