On Thu, Apr 10, 2008 at 2:01 AM, Tatsuro MATSUOKA <[EMAIL PROTECTED]> wrote: > Hello > > I have complete misled the matter yesterday. > I found it was very easy this morning. > I would like to cry how silly I was !!!!!!! :-( > > BTW: The following Patch is OK for src/Makefile for mingw/cygwin. > > *** Makefile.org Thu Apr 10 08:28:11 2008 > --- Makefile Thu Apr 10 08:31:30 2008 > *************** > *** 4,14 **** > --- 4,17 ---- > FIXEDTARGET = fixed.oct > > DLLDEF = > + ADD_FLAGS = > ifneq (,$(findstring cygwin,$(canonical_host_type))) > DLLDEF = -DFIXED_DLL > + ADD_FLAGS = -Wl,--out-implib=libfixed.a > endif > ifneq (,$(findstring mingw,$(canonical_host_type))) > DLLDEF = -DFIXED_DLL > + ADD_FLAGS = -Wl,--out-implib=libfixed.a > endif > ifneq (,$(findstring msdosmsvc,$(canonical_host_type))) > DLLDEF = -DFIXED_DLL > > > ************************** > I have confirmed > > cd main/fixed/src > ./autogen.sh > ./configure > make > cd ../examples > make > PATH=$PATH:../src > octave > addpath ("../src") > a = ffft(fixed(6,4,32*randn(64,1))) > > in cygwin/mingw. > > PATH to where fixed.oct is required because it plays both role as an oct and > a dll file.) > So > PATH=$PATH:../src > is addded. > > I think we need to add path by > putenv('PATH', sprintf("\'%s\':***********", getenv('PATH'))) > > *********** is a PATH where fixed.oct is placed in octaverc something like > that for windows > plataforms. > > Hi,Micael! Do you have a any good idea?
You don't need this in a normal install. When calling "fixed" from octave prompt, octave will find and load fixed.oct as it would with any other oct-file. When calling "ffft" from octave prompt, octave will find and load ffft.oct and resolve directly the fixed.oct dependency as fixed.oct is already loaded in memory. So the only requirement is that octave loads fixed.oct before ffft.oct. In practice this will always be the case, because you need a "fixed" object to pass as argument to ffft. Of course you could complain that something like: ffft([]) won't work, because fixed.oct before. But that's not suppose to work anyway... And this kind of dependency will exists on all platforms, so it's not a Windows-only problem. Michael. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev