[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: standalone program under windows 7
From: |
Valmor de Almeida |
Subject: |
Re: standalone program under windows 7 |
Date: |
Mon, 07 Feb 2011 20:33:12 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101128 Lightning/1.0b3pre Lanikai/3.1.6 |
On 02/07/2011 07:39 PM, Tatsuro MATSUOKA wrote:
> Hwllo
>
> It requires path and environmental variables setting if you use mkoctfile.exe
> externally.
> The easier way to do this, you execute mkoctfile inside octave
>
> octave> cd (path where your source is placed)
> octave> mkoctfile --link-stand-alone test.cc -o test
Hello,
I was able to compile and generate the executable as you suggested. Now
running in a DOS window or just double clicking on the file, I get
The program can't start because liboctave.dll is missing from your
compouter. Try reinstalling the program to fix this problem.
I edited the PATH variable under Windows 7 to include:
C:\Octave\3.2.4_gcc-4.4.0\bin\
Now I am able to run the test and I get the following error:
GCD of [10,15] is error: feval: function `gcd' no found
invalid
This test case is just what is at
http://www.gnu.org/software/octave//doc/interpreter/Standalone-Programs.html#Standalone-Programs
Is there another library that needs to be linked? If I fire-up octave in
Windows 7 and ask help on gcd, it shows the help and I can also use the
function inside octave. I don't know what is missing then. Another PATH?
Thanks,
--
Valmor
>
> Regards
>
> Tatsuro
> --- Valmor de Almeidawrote:
>
>>
>> Hello,
>>
>> I am trying to create a standalone program example from the octave user
>> manual under windows 7.
>> When I do
>>
>> C:\Octave\3.2.4_gcc-4.4.0\bin\mkoctfile --link-stand-alone test.cc -o test
>>
>> in a DOS window I get
>>
>> 'mingw32-g++-4.4.0-dw2' is not recognized as an internal or external
>> command, operable program or batch file.
>>
>> I installed octave in this windows 7 machine using the installer in
>>
>> http://octave.sourceforge.net/
>>
>> Do I also need to install cygwin in order to use mkoctfile and create an
>> executable program?
>>
>> Thanks,
>>
>> --
>> Valmor
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
>>
>
>
> --------------------------------------
> Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
> http://pr.mail.yahoo.co.jp/ie8/
- standalone program under windows 7, Valmor de Almeida, 2011/02/07
- Re: standalone program under windows 7, Tatsuro MATSUOKA, 2011/02/07
- Re: standalone program under windows 7,
Valmor de Almeida <=
- Re: standalone program under windows 7, Benjamin Lindner, 2011/02/08
- Re: standalone program under windows 7, Valmor de Almeida, 2011/02/08
- Re: standalone program under windows 7, Alexander Barth, 2011/02/08
- Re: standalone program under windows 7, Valmor de Almeida, 2011/02/08
- Re: standalone program under windows 7, Benjamin Lindner, 2011/02/08
- Re: standalone program under windows 7, Valmor de Almeida, 2011/02/08