[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: mkoctfile HelloWorld.cc in Windows
From: |
Suzan Bader |
Subject: |
RE: mkoctfile HelloWorld.cc in Windows |
Date: |
Tue, 02 Oct 2007 11:10:00 +0100 |
Michael,
Thanks again for your help. I got it working using:
- A clean XP box with MSVC express version 8, and platform SDK installed.
- Ran SetEnv.bat from SDk folder to set the environment variable
- Ran VCVars32.bat from MSVC 8\bin folder to set up environment variable for
MSVC
Thanks
Suzan
-----Original Message-----
From: Michael Goffioul [mailto:address@hidden
Sent: 28 September 2007 18:14
To: szb
Cc: address@hidden
Subject: Re: mkoctfile HelloWorld.cc in Windows
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.