C++ implementation of octave functions

aicha khabil aicha.cs at gmail.com
Tue Apr 7 02:39:04 CDT 2009


Thank you

Aicha

"Every person of learning is finally his own teacher"


2009/4/7 Tatsuro MATSUOKA <tmacchant at yahoo.co.jp>

> Hello
>
> It is useful to see how c++ codes be compiled and linked when using
> mkoctfile by
>
> mkoctfile -v hoge.ccc
> or
> mkoctfile --verbose hoge.ccc
>
> If you would like to make '.oct' files on msvc, please see the 'Note for
> mkoctfile (and pkg install)
> for MSVC-octave 3.0.3' at
>
> http://www.tatsuromatsuoka.com/octave/Eng/Win/index.html#0004
>
> You will find how to write C++ code to use the octave library (liboctave)
>  in the octave manual,
> Appendix A Dynamically Linked Functions.
>
> if you do not need to use GUI staff of MSVC standalone program can be built
> by mkoctfile like,
>
> mkoctfile --link-stand-alone standalone.cc -o standalone
>
> Please in details A.3 in Appendix A.
>
> Regards
>
> Tatsuro
>
>
> --- Michael Goffioul  wrote:
>
> > On Mon, Apr 6, 2009 at 10:44 AM, aicha khabil <aicha.cs at gmail.com>
> wrote:
> > > I am using octave on windows xp. i use octave to implemante a few
> functoion
> > > about matrix ones into my program c++, but i failed to connecte vc++
> with
> > > octave librairie .
> > >
> > > Do you can explane me how can i to do this.
> >
> > You have to follow the standard way of using external libraries in VC++:
> > 1) include required octave headers in your source code
> > 2) add octave include directory to the include path
> > 3) add octave library directory to library path
> > 4) link your software against required octave libraries
> >
> > Additionally, you have to
> > - use the same VC compiler as the one used to generate the octave
> > binary version you're using (recent versions have been compiled with
> > VS2008)
> > - use the /MD compilation flag
> >
> > Michael.
> > _______________________________________________
> > Help-octave mailing list
> > Help-octave at octave.org
> > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> >
>
>
> --------------------------------------
> Power up the Internet with Yahoo! Toolbar.
> http://pr.mail.yahoo.co.jp/toolbar/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090407/6480ba1d/attachment-0001.html 


More information about the Help-octave mailing list