[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting started with Octave and Visual C++
From: |
n3t |
Subject: |
Re: Getting started with Octave and Visual C++ |
Date: |
Tue, 23 Jun 2009 04:20:16 -0700 (PDT) |
Ok, I was not clear, so I will explain what I did.
1) Installed octave-3.0.1-vs2008-setup.exe [note: I've VS2008 not express,
but professional edition]
2) In Tools/Options I added:
Executable files -> C:\Programs\Octave\bin
Include files -> C:\Programs\Octave\include
Include files -> C:\Programs\Octave\include\octave-3.0.1\octave
Library files -> C:\Programs\Octave\lib\octave-3.0.1
3) I copied all *.dll and *.lib files in C:\Programs\Octave and subdir in
all my project dirs and subdirs
4) In my project, in stdafx.h I wrote
#include <config.h>
#include <octave.h>
#include <oct.h>
5) in my only .cxx file, I wrote
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
Matrix A (2,2,0);
return 0;
}
6) Menu Project/Properties/Linker/Input,
Additional dependencies -> octave.lib octinterp.lib cruft.lib
7) Build: it says to me
1>projectname- 0 error(s), 49 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
8) when I start the executable, it crashes and shows this message:
First-chance exception at 0x7c91eae0 in projectname.exe: 0xC0000005: Access
violation reading location 0x00000130.
R6034
An application has made an attempt to load the C runtime library
incorrectly.
Please contact the application's support team for more information.
projectname.exe has triggered a breakpoint
The program '[3984] projectname.exe: Native' has exited with code 0 (0x0).
Where is the mistake?
--
View this message in context:
http://www.nabble.com/Getting-started-with-Octave-and-Visual-C%2B%2B-tp24134467p24164067.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Getting started with Octave and Visual C++, n3t, 2009/06/21
- Re: Getting started with Octave and Visual C++, Søren Hauberg, 2009/06/21
- Re: Getting started with Octave and Visual C++, n3t, 2009/06/21
- Re: Getting started with Octave and Visual C++, Søren Hauberg, 2009/06/21
- Re: Getting started with Octave and Visual C++, n3t, 2009/06/23
- Re: Getting started with Octave and Visual C++, Tatsuro MATSUOKA, 2009/06/23
- Re: Getting started with Octave and Visual C++,
n3t <=
- Re: Getting started with Octave and Visual C++, Michael Goffioul, 2009/06/23
- Re: Getting started with Octave and Visual C++, Michael Goffioul, 2009/06/23
Re: Getting started with Octave and Visual C++, Michael Goffioul, 2009/06/21