On 21/04/06, Michael Wybrow <mjwybrow@...1047...> wrote:
On Tue, 18 Apr 2006, jiho wrote:
my third email of the day ;-) compilation on OS X with gcc 4.0 fails. I think it is due to some multiple definitions of symbols. I have searched for fixes to this. It seems to be a very common problem but I did not find any clear answer.
jiho, your work on Inkscape (which is probably greater than mine) is very much appreciated. If you can give a link to this "very common problem", I will endeavour to attach a clear answer.
Problems like the one you describe are often due to one of the libraries being built with an earlier version of gcc. Are you sure GTK was built with gcc-4.0.
Just to second that comment. The likely explanation is that fink was compiled with gcc-3.n and you have been using gcc-4. There was an ABI change in GCC at that major version upgrade. It is to be hoped that the fink project will switch to gcc-4 (and I thought that this might have happened), until then, it is easiest to use gcc-3.n, and there is a simple way of doing this: Try the command:
sudo gcc_select
which should give a pointer as to how to switch between the compilers available on Tiger.
Ben