|Subject:||Re: C++ implementation of octave functions|
|Date:||Tue, 7 Apr 2009 09:39:04 +0200|
It is useful to see how c++ codes be compiled and linked when using mkoctfile by
mkoctfile -v hoge.ccc
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
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.
--- Michael Goffioul wrote:
> On Mon, Apr 6, 2009 at 10:44 AM, aicha khabil <address@hidden> 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
> - use the /MD compilation flag
> Help-octave mailing list
Power up the Internet with Yahoo! Toolbar.
|[Prev in Thread]||Current Thread||[Next in Thread]|