help-octave
[Top][All Lists]
Advanced

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

Re: How to use Octave with Visual Studio 2008 ?


From: atabodur
Subject: Re: How to use Octave with Visual Studio 2008 ?
Date: Fri, 26 Sep 2008 07:11:00 -0700 (PDT)



Sunny127 wrote:
> 
> I've tryied to create a new project in VS2008, copy all ocatave dlls to
> it's directory, linked all octave .lib files, and all compiled and linked
> ok, but when I ran the program, it crashed complaining about horrible
> errors. My guess is that Octave 3 was compiled with other dlls that VS2008
> ... Any ideas ?
> 

I've got similar problem. I try running simple example as shoving lib
directory, include directory and the directory for dll's but complains about
it needs some dll's at the linking stage:

OctaveDenVC.cpp:

#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
        Matrix A (2,2,0);
        

        std::cout<<A<<std::endl;

        return 0;
}



Linking...
LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from
OleAcc.dll
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall Matrix::~Matrix(void)"
(__imp_??1Matrix@@address@hidden) referenced in function _wmain
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class std::basic_ostream<char,struct
std::char_traits<char> > & __thiscall std::basic_ostream<char,struct
std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct
std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct
std::char_traits<char> > &))"
(address@hidden@address@hidden@@@std@@address@hidden@AAV01@@address@hidden)
referenced in function _wmain
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl operator<<(class
std::basic_ostream<char,struct std::char_traits<char> > &,class Matrix const
&)"
(address@hidden@address@hidden@std@@@std@@address@hidden@@@Z)
referenced in function _wmain
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall Matrix::Matrix(int,int,double)"
(__imp_??0Matrix@@address@hidden@Z) referenced in function _wmain
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class std::basic_ostream<char,struct
std::char_traits<char> > & __thiscall std::basic_ostream<char,struct
std::char_traits<char> >::flush(void)"
(address@hidden@address@hidden@std@@@std@@address@hidden)
referenced in function "class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl std::endl(class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(address@hidden@@address@hidden@address@hidden@@@address@hidden@@Z)
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class std::basic_ostream<char,struct
std::char_traits<char> > & __thiscall std::basic_ostream<char,struct
std::char_traits<char> >::put(char)"
(address@hidden@address@hidden@std@@@std@@address@hidden@Z)
referenced in function "class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl std::endl(class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(address@hidden@@address@hidden@address@hidden@@@address@hidden@@Z)
stdafx.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
symbol_record::~symbol_record(void)" (__imp_??1symbol_record@@address@hidden)
referenced in function "public: void * __thiscall symbol_record::`vector
deleting destructor'(unsigned int)" (??_Esymbol_record@@address@hidden)
stdafx.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl octave_value::operator
delete(void *,unsigned int)" (__imp_??3octave_value@@address@hidden) referenced
in function "public: void * __thiscall octave_value::`vector deleting
destructor'(unsigned int)" (??_Eoctave_value@@address@hidden)
stdafx.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall octave_value::~octave_value(void)"
(__imp_??1octave_value@@address@hidden) referenced in function "public: void *
__thiscall octave_value::`vector deleting destructor'(unsigned int)"
(??_Eoctave_value@@address@hidden)
E:\OctaveDenVC\Debug\OctaveDenVC.exe : fatal error LNK1120: 9 unresolved
externals
Build log was saved at
"file://e:\OctaveDenVC\OctaveDenVC\Debug\BuildLog.htm"
OctaveDenVC - 10 error(s), 66 warning(s) 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-Octave-with-Visual-Studio-2008---tp17507964p19689250.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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