help-octave
[Top][All Lists]
Advanced

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

RunTime error R6034 using Visual C++ and Octave 3.0.3 C++ API


From: Niko Zimmer
Subject: RunTime error R6034 using Visual C++ and Octave 3.0.3 C++ API
Date: Thu, 22 Apr 2010 07:23:53 -0800 (PST)

Hello folks !

It's my first post here! 
I'm trying to compile my own Windows-based C++ DLL using Visual Studio 8
(2005). I have some mathematical operations to do in my program, and I'd
rather not use Matlab run-time. So I decided to use Octave C++ API (V 3.0.3
-> compiled with Visual Studio 2008).

These two topics retains my atention : 
http://octave.1599824.n4.nabble.com/help-for-c-developpement-td1634463.html#a1634463
one  and 
http://octave.1599824.n4.nabble.com/Getting-started-with-Octave-and-Visual-C-td1636630.html#a1636630
two .

So, I followed the instructions : 
1) I moved the octave *.h in a specific directory that I'm including from
Visual. By the way, I put Octave.dll, Octinterp.dll, cruft.dll and the
MSVC90.dll's in my application directory.
2) I linked octave.lib, and octinterp.lib from Visual
3) I included the oct.h in my cpp file and I wrote my C++ code using Octave
API classes
4) I put the /MD option in the preprocessor tab (Multithread Dll)
5) I turn on "generate a manifest file"

Results : Compilation and Link are OK. Yes !

My problem is while running (in Debug) my app, the LoadLibrary() function
causes a runtime error R6034 that says :
"An application has made an attempt to load the C runtime library
incorrectly". The CallStack don't tell me much more, so I'm stuck here.

Actually, this is the same problem as the link "two". Did I forget something
?

Thanks for any help !

Best regards,
 

-----
Nicolas Zimmermann - IT Apprentice - Telecom Bretagne - France - 
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/RunTime-error-R6034-using-Visual-C-and-Octave-3-0-3-C-API-tp2020704p2020704.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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