Octave/Windows compiled with VS2008 available. I have problem to use octave libraries with Visual studio
Mehmet Ata BODUR
atabodur77 at gmail.com
Thu Oct 9 08:01:21 CDT 2008
Dear Michael
I tried to use the dll's and libs from my Visual Studio 2008 but I couldn't
succeed. I am just trying to run the below code. It is giving me errors for
some dll functions not found. What may be the problem.
Any help will be appreciated.
Thanks in advance.
Best regards.
//MyCpp:
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
Matrix A (2,2,0);
std::cout<<A<<std::endl;
return 0;
}
//stdafx.h
#pragma once
#include "targetver.h"
#include <conio.h>
#include <stdio.h>
#include <tchar.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#include <ios>
#include <iomanip>
#include <string>
#include <math.h>
#include <numeric>
#include <float.h>
#include <iterator>
// TODO: reference additional headers your program requires here
#include <config.h>
#include <octave.h>
#include <oct.h>
Linking...
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
symbol_record::~symbol_record(void)" (__imp_??1symbol_record@@QAE at XZ)
referenced in function "public: void * __thiscall symbol_record::`vector
deleting destructor'(unsigned int)" (??_Esymbol_record@@QAEPAXI at Z)
stdafx.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
symbol_record::~symbol_record(void)" (__imp_??1symbol_record@@QAE at XZ)
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall Matrix::~Matrix(void)"
(__imp_??1Matrix@@UAE at XZ) referenced in function _main
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall Matrix::Matrix(int,int,double)"
(__imp_??0Matrix@@QAE at HHN@Z) referenced in function _main
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl octave_value::operator
delete(void *,unsigned int)" (__imp_??3octave_value@@SAXPAXI at Z) referenced
in function "public: void * __thiscall octave_value::`vector deleting
destructor'(unsigned int)" (??_Eoctave_value@@QAEPAXI at Z)
stdafx.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl octave_value::operator
delete(void *,unsigned int)" (__imp_??3octave_value@@SAXPAXI at Z)
OctaveDenVC.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall octave_value::~octave_value(void)"
(__imp_??1octave_value@@QAE at XZ) referenced in function "public: void *
__thiscall octave_value::`vector deleting destructor'(unsigned int)"
(??_Eoctave_value@@QAEPAXI at Z)
stdafx.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall octave_value::~octave_value(void)"
(__imp_??1octave_value@@QAE at XZ)
E:\OctaveDenVC\Debug\OctaveDenVC.exe : fatal error LNK1120: 5 unresolved
externals
Build log was saved at "file://e:\OctaveDenVC\Debug\BuildLog.htm"
OctaveDenVC - 9 error(s), 48 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Hi all,
Just a short notice to let you know I uploaded on SF.net a version
of octave-3.0.1 compiled with Visual Studio 2008. Future releases
will only be compiled with that compiler.
This package is functionally equivalent to the other package (that
was compiled with VS2005). The main differences are:
- inclusion of additional packages (ftp, database, video and ann)
- ATLAS-3.8.1 with SSE3 support:
* SSE2-only processors should use the generic F77 libs
* SSE3 detection in the installer does not work well yet, so
if you know your CPU has SSE3, select the right libs in the
installer
- additional exported symbols for the tree walker (basically all
the tree_xxx classes are now exported)
- some fancy graphics in the installer (just for fun...)
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20081009/9e271d70/attachment.html
More information about the Help-octave
mailing list