octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #39856] Cannot compile an Oct-File in Windows


From: Dave Robinson
Subject: [Octave-bug-tracker] [bug #39856] Cannot compile an Oct-File in Windows 7 64 or Vista 64 oct file
Date: Thu, 22 Aug 2013 20:14:11 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?39856>

                 Summary: Cannot compile an Oct-File in Windows 7 64 or Vista
64 oct file
                 Project: GNU Octave
            Submitted by: davewr2013
            Submitted on: Thu 22 Aug 2013 08:14:11 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Dave Robinson
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

This applies to the Ocatve Version configured for WIndows install -- Microsoft
Visual Studio 2010 version

The Dynamically Linked Function example Oct-File example in the manual at page
669 (685 of PDF) will not compile.

The compiler indicates that the mkoctfile compiler is not available --
actually it is a broken link to the Microsoft Visual Studio C compiler.

The following is a simple change that will allow compiling an oct file in
Windows 7 and Windows Vista 64

Line 74 of math.h needs to be changed to compile if a 32 bit compiler is used
-- like the C Express compilers.

Note that the only change is to add "(x86)" to line 74 as indicated.

/* Include VC++ original math.h */
#include <c:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/include/math.h>

Using this batch file from a command prompt in the home directory appears to
start Octane 3.6 correctly. This assumes that the Microsoft Visual Studio
Express 2010 C++ compiler is installed.


*********************
echo off
cd C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
call vcvarsall.bat x86
cd C:\Software\Octave-3.6.4\
bin\octave-3.6.4.exe
*************************







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39856>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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