help-octave
[Top][All Lists]
Advanced

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

Re: how to instal, or upgrade, the latest octave version on windows 7


From: Mircea Toma
Subject: Re: how to instal, or upgrade, the latest octave version on windows 7
Date: Fri, 9 Dec 2011 17:38:45 -0800 (PST)

Thanks.
I tried the same HelloWorld.cc and it worked well for me too. The one that gave me the error is:
     #include <octave/oct.h>
     
     DEFUN_DLD (helloworld, args, nargout,
       "Hello World Help String")
     {
       int nargin = args.length ();
       octave_stdout << "Hello World has " << nargin
             << " input arguments and "
             << nargout << " output arguments.\n";
       return octave_value_list ();
     }

from:
http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Oct_002dFiles.html

I am not sure what DEFUN_OLD is suppose to be. And I am not sure if this is suppose to work as it.
thanks again.
Mircea



From: Tatsuro MATSUOKA <address@hidden>
To: c. <address@hidden>; Carnë Draug <address@hidden>; Mircea Toma <address@hidden>
Cc: "address@hidden" <address@hidden>; nitnit <address@hidden>
Sent: Thursday, December 8, 2011 7:50 PM
Subject: Re: how to instal, or upgrade, the latest octave version on windows 7

Hello

I have used the following source in the octave manual.

//HelloWorld.cc
#include <iostream>
#include <octave/oct.h>
   
    int
    main (void)
    {
      std::cout << "Hello Octave world!\n";
      int n = 2;
      Matrix a_matrix = Matrix (n, n);
      for (octave_idx_type i = 0; i < n; i++)
        {
          for (octave_idx_type j = 0; j < n; j++)
            {
              a_matrix (i, j) = (i + 1) * 10 + (j + 1);
            }
        }
      std::cout << a_matrix;
      return 0;
    }
// End of HelloWorld.cc


octave:5> mkoctfile --link-stand-alone HelloWorld.cc -o HelloWorld
octave:6> system ('HelloWorld')
Hello Octave world!
11 12
21 22
ans = 0

Worked as expected

Regards

Tatsuro


--- On Fri, 2011/12/9, Mircea Toma  wrote:

>
>
> Thaks for help. Now I get "undefined reference to address@hidden'".
> Regards,
> Mircea
>
>
>
> GNU Octave, version 3.4.3
> .............................
> octave:1> cd "C:/oct-test/helloworld"
> octave:2> mkoctfile helloworld.cpp --link-stand-alone
> c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(main.o): In function `main':
> C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to address@hidden'
> collect2: ld returned 1 exit status
> octave:3>
>
>



>  From: Tatsuro MATSUOKA <address@hidden>
>  To: c. <address@hidden>; Carnë Draug <carandraug+address@hidden>; Mircea Toma <address@hidden>
> Cc: "address@hidden" <address@hidden>; nitnit <address@hidden>
>  Sent: Thursday, December 8, 2011 3:14 PM
>  Subject: Re: how to instal, or upgrade, the latest octave version on windows 7

> Hello
>
> > I downloaded libreadline.dll.a.7z and uncompressed it. I don't think that libreadline.dll.a is a name for a windows dll. It is just the name (extension)? 
>
> You wrote
> octave:2> mkoctfile helloworld.cpp --link-stand-alone
> c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lreadline
> collect2: ld returned 1 exit status
>
> libreadline.dll.a is a library against dynamic link library for readline.dll.
> readline.dll already exists in Octave3.4.3_gcc4.5.2\bin
> Please place libreadline.dll.a in Octave3.4.3_gcc4.5.2\lib
> *.dll.a files are used in linking for MinGW platform.
>
> Regards
>
> Tatsuro
>
> --- On Fri, 2011/12/9, Mircea Toma wrote:
>
> >
> >
>
> > Regards,
> > mircea
> >
> >  
> > 
> >  
> >   From: Tatsuro MATSUOKA <address@hidden>
> >  To: c. <address@hidden>; Carnë Draug <carandraug+address@hidden>
> > Cc: "address@hidden" <address@hidden>; Mircea Toma <address@hidden>; nitnit <address@hidden>
> >  Sent: Thursday, December 8, 2011 11:49 AM
> >  Subject: Re: how to instal, or upgrade, the latest octave version on windows 7
> >  
> > Hello
> >
> > I think that Nitzan Arazi is the most proper person to write the Readme because he made the packages.  When uploading the binary to Octave-forge site, please ask that Nitzan correct the missing libreadline.dll.a.
> >
> > Regards
> >
> > Tatsuro
> >
> >
> > --- On Thu, 2011/12/8, Carnë Draug  wrote:
> >
> > > On 7 December 2011 07:52, c. <address@hidden> wrote:
> > > > On 6 Dec 2011, at 19:02, Tatsuro MATSUOKA wrote:
> > > >
> > > >> Hello
> > > >>
> > > >> Please see
> > > >>
> > > >> http://wiki.octave.org/wiki.pl?OctaveForWindows
> > > >>
> > > >> 1.3. Octave-3.4.3-mingw + octaveforge pkgs
> > > >>
> > > >> Please care that this distribution does not have automated installer.
> > > >> You have to install it according the instruction on the page.
> > > >>
> > > >> Regards
> > > >>
> > > >> Tatsuro
> > > >
> > > >
> > > > Carnë,
> > > > do you think it would make sense to host this on Octave-Forge?
> > >
> > > Yes it does. I'm uploading these files now. Sorry for taking so long,
> > > I was not following this thread at all since I know absolutely nothing
> > > of windows.
> > >
> > > If anyone that knows about it, can write a README file, something like
> > > the one for 3.2.4. This file is the one that would go ono the
> > > directory that has the different files and explains why there's one
> > > pkgs and another without, and what to do with the libreadline file.
> > >
> > > Carnë
> > >
> >
> >
> >
>
>
>



reply via email to

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