Octave for Microsoft Windows: Difference between revisions

Line 823: Line 823:
==Using the Visual C++ compiler with Octave==
==Using the Visual C++ compiler with Octave==


As of version 3.6.1, the Microsoft Visual C++ compiler is not automatically detected. If you need to use it from octave (for instance to compile a MEX or OCT file), then you must configure your system by updating the appropriate environment variables: '''%PATH%''', '''%INCLUDE%''' and '''%LIB%'''. One way to achieve this easily is to call the vcvarsall.bat script (from the Visual C++ installation directory) prior executing octave. You can for instance automate this by creating a batch script with the following content (adapt paths to your actual installation):
As of version 3.6.1, the Microsoft Visual C++ compiler is not automatically detected. If you need to use it from octave (for instance to compile a MEX, OCT file, and building packages), then you must configure your system by updating the appropriate environment variables: '''%PATH%''', '''%INCLUDE%''' and '''%LIB%'''. One way to achieve this easily is to call the vcvarsall.bat script (from the Visual C++ installation directory) prior executing octave. You can for instance automate this by creating a batch script with the following content (adapt paths to your actual installation):


  call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
  call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
Anonymous user