Thanks, that seems to satisfy the linker!
Oddly enough, I'm now getting a lot of "Invalid declaration" errors and
other warnings, and it still won't compile in Ubuntu, even though the same
code works on the Mac. But it's probably a Fortran issue, not a debian
issue. Thanks again for your help!

- Emmanuel

On 12/9/06, Douglas Bates <bates@stat.wisc.edu> wrote:
>
> The preferred way to specify use of the BLAS libraries is with a
> Makevars file containing the single line
>
> PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
>
> This will work on Ubuntu and on a Mac. It even works on that other
> operating system that many unfortunate souls are forced to use.
>
> On 12/9/06, escargot <esharef@gmail.com> wrote:
> > Hello!
> >
> > I have some Fortran code that uses BLAS calls, and would like to compile
> it
> > into a shared object to call it from R as per the "Writing R Extensions"
> > manual. What needs to go into the "Makevars" file, so that running the R
> CMD
> > SHLIB will work in Ubuntu?
> >
> > The code compiles properly on the Mac, with the Makevars line
> >     PKG_CFLAGS=-Wl,-framework -Wl,vecLib
> > but of course that won't work on Ubuntu :-) . Also, if I need to install
> any
> > packages to make the BLAS work, I'd love to know about it.
> >
> > Thanks!
> > - Emmanuel
> >
> >         [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-SIG-Debian mailing list
> > R-SIG-Debian@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-debian
> >
>

	[[alternative HTML version deleted]]

