help-octave
[Top][All Lists]
Advanced

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

Re: Getting started with Octave and Visual C++


From: Michael Goffioul
Subject: Re: Getting started with Octave and Visual C++
Date: Tue, 23 Jun 2009 13:28:27 +0100

It seems the compiler bumps on OCINTER_API qualifier,
so it seems oct-dlldefs.h is not included properly, which means
config.h is not included properly (config.h does includes it). Maybe
the compiler is using another config.h that happen to be in the
include path.

What you can try is to add C:\Programs\Octave\include\octave-3.0.1
only to your include path, and to include octave headers with

#include <octave/config.h>
#include <octave/octave.h>
#include <octave/oct.h>

Michael.


On Tue, Jun 23, 2009 at 12:20 PM, n3t<address@hidden> wrote:
>
> 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.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>



reply via email to

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