I tried to build the optiminterp-0.3.1 package on octave-3.0.2/mingw32.
I get a linker error of undefined references to a number
"__gfortran_whatever" functions.
Looking into the makefile, I see that the linking command is specified as
optiminterp.oct: $(OBJECTS)
$(MKOCTFILE) -o $@ $(OBJECTS) $(LIBS)
Now LIBS as returned from mkoctfile does not include the fortran
libraries as set during configure stage when building octave. These are
stored in FLIBS.
Shouldn't the makefile read like
optiminterp.oct: $(OBJECTS)
$(MKOCTFILE) -o $@ $(OBJECTS) $(LIBS) $(FLIBS)
with FLIBS being set as the result of "mkoctfile -p FLIBS"?
Should mkoctfile -p LIBS also return the fortran libraries?
Or should mkoctfile automatically include FLIBS in linking if any source
file is a fortran file? (how would mkoctfile know this?)
Benjamin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev