help-octave
[Top][All Lists]
Advanced

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

Re: mkoctfile HelloWorld.cc in Windows


From: Michael Goffioul
Subject: Re: mkoctfile HelloWorld.cc in Windows
Date: Fri, 28 Sep 2007 19:13:40 +0200

On 9/28/07, szb <address@hidden> wrote:
>
> Hi,
>
> I am a newbie in this area, so sorry if I seems to be away of the track...
> and sorry if this question has already been addressed in any other thread...
>
> I am running on Windows XP and have the "Microsoft Visual Studio 8"
> commercial version with SDk and all that.
>
> I have installed octave-2.9.13-setup.exe in the "c:\Programs\..." folder (a
> folder without white space), and have tried to compile and run the example
> octfile "HelloWorld.cc"
>
>   #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 ();
>     }
>
>
>  Running the following command from the DOS prompt:
>
>  mkoctfile helloworld.cc
>
>  I get lots of compile error (please see below). I wonder if anybody can
> help me and tell me what I am doing wrong!!?

I tried your example on my installation and it worked OK, so it's probably
a configuration problem. You should check whether the complete MSVC
environment is available in your DOS prompt: PATH, INCLUDE, LIBS...
Do you have another MSVC version installed?

Michael.


reply via email to

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