On Fri, May 14, 2010 at 3:51 PM, Alan <alanwilter.gmail.com> wrote:
> Indeed, you can mixed gfortran with apple gcc if you do instead of
>
> gcc -o testp testp.c.o testp.f.o -lgfortran -framework Accelerate
>
> use
>
> gfortran -o testp testp.c.o testp.f.o -framework Accelerate
>
Huh, I always just assumed -lgfortran was necessary for proper linking, so
never actually tried removing it :).
>
> But then you may need to know well what you're doing with config.h and
> Makefile.
>
> Cheers,
>
> Alan
>
> On Fri, May 14, 2010 at 19:40, Jason Swails <jason.swails.gmail.com>
> wrote:
>
> > On Fri, May 14, 2010 at 2:25 PM, Mengjuei Hsieh <mjhsieh.gmail.com>
> wrote:
> >
> > > On Fri, May 14, 2010 at 6:03 AM, Alan <alanwilter.gmail.com> wrote:
> > > > Anyway, apple gcc (/usr/bin/gcc) is the *only* gcc you have so it
> won't
> > > work
> > > > to compile AmberTools. The reason is that apple gcc has no libs for
> > > fortran,
> > > > see, form my system:
> > >
> > > Actually, if you use MacPorts' gfortran and apple's stock gcc, it
> > > might work in some occasions. (That happened to my previous computer
> > > once.) However, mixing different version of gcc and gfortran is indeed
> > > not wise. :-p
> > >
> >
> > It's worked for me on old versions of amber (and even pre-release 11),
> but
> > my experience has been that C/F90 linking doesn't work with that
> > configuration. Maybe there are tricks you can play? It's been a while
> > since I've attempted that on my machine though, so my memory may be hazy.
> > However, you're the mac-install expert, Mengjuei ;-).
> >
> > All the best,
> > Jason
> >
> >
> > > --
> > > Mengjuei
> > >
> > > _______________________________________________
> > > AMBER mailing list
> > > AMBER.ambermd.org
> > > http://lists.ambermd.org/mailman/listinfo/amber
> > >
> >
> >
> >
> > --
> > Jason M. Swails
> > Quantum Theory Project,
> > University of Florida
> > Ph.D. Graduate Student
> > 352-392-4032
> > _______________________________________________
> > AMBER mailing list
> > AMBER.ambermd.org
> > http://lists.ambermd.org/mailman/listinfo/amber
> >
>
>
>
> --
> Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
> Department of Biochemistry, University of Cambridge.
> 80 Tennis Court Road, Cambridge CB2 1GA, UK.
> >>http://www.bio.cam.ac.uk/~awd28 <http://www.bio.cam.ac.uk/%7Eawd28><<
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
--
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri May 14 2010 - 15:30:04 PDT