octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking liboctave fails (lapack missing?)


From: Benjamin Lindner
Subject: Re: linking liboctave fails (lapack missing?)
Date: Sat, 15 Aug 2009 11:49:57 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

Benjamin Lindner wrote:

Linking liboctinterp.dll fails with the missing symbols attached: (I
omitted double errors in the same object file, otherwise the list is
*really* long and does not contain additional information):

The first group stems from $(LIBCRUFT) missing as link dependency.

The second group stems from missing
   -lgdi32 (GetDeviceCaps)
   -liberty (mkstemps)
The first is the windows system GDI library and the second is the
mingw/gcc support library.
Both are added to $LIBS during configure stage for the mingw platform

The third group stems from $(FLIBS) missing as link dependency.

To link successfully I have to do

OCTINTERP_LINK_DEPS = $(RLD_FLAG) -L../liboctave $(LIBOCTAVE)
-L../libcruft $(LIBCRUFT) \
   $(HDF5_LIBS) $(ZLIB_LIBS) $(X11_LIBS) $(OPENGL_LIBS) $(CARBON_LIBS) \
   $(LIBS) $(FLIBS)

Looking closely I see that $(LIBS) already contains -lgfortran as the configure summary tells:

  Fortran libraries:    -lgfortran
LIBS: -liberty -llapack -lblas -lgfortran -lblas -lm -lgdi32 -lws2_32 -luser32 -lkernel32

so actually it suffices to add simply $(LIBS), i.e.

OCTINTERP_LINK_DEPS = $(RLD_FLAG) -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) \
  $(HDF5_LIBS) $(ZLIB_LIBS) $(X11_LIBS) $(OPENGL_LIBS) $(CARBON_LIBS) \
  $(LIBS)

benjamin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]