steven,

You are right. beside installing Xcode from apple (which includes some
version of gcc if i am right), I've just installed g77 3.4 provided by
http://hpc.sourceforge.net/. they provide also a gcc package but it contains
gfortran (F95). which gcc and g++ should I install then?
thanks again for the help

Michael

On Wed, Apr 23, 2008 at 6:17 PM, Steven G. Johnson <[EMAIL PROTECTED]>
wrote:

> On Apr 23, 2008, at 3:10 AM, Michael Mrejen wrote:
> >
> > The question is now, how can I tell the linker to choose one of the
> > gcc
> > version available?
>
> You need to compile and link everything with the same version of gcc
> and g++.  For example, suppose you have one version of cc installed as
> gcc-4.1, g++-4.1, and g77-4.1.  Then you can compile and link with
> these by using:
>
>        ./configure CC=gcc-4.1 CXX=g++-4.1 F77=g77-4.1
>
> Alternatively if you installed under the same names, you can set up
> your $PATH so that it prefers one version of gcc.  I suspect that you
> may have installed only g77 from a separate version of gcc; in that
> case you will want to install the rest of that version of gcc too
> (i.e. the C and C++ compilers).
>
> Steven
>
> _______________________________________________
> meep-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to