Using shared library within VS .NET 2003
- From: "Francisco Zurita" <fzurita@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Dec 2005 06:45:31 -0500
I have matlab 7.1 and VS .NET 2003. I used "mbuild -setup" within
matlab to select VS .NET 2003 as the compiler. Then I used "mcc -W
cpplib:pso -T link:lib file1.m file2.m file3.m" That worked pretty
well, and it created the following files: pso.dll, pso.h, pso.lib,
pso.cpp, pso_mcc_component_data.c, pso.ctf, and pso.exports. I was
able to import all of this files into a .NET C++ application. I did
have to add "include "stdafx.h" " to several of the files, I had to
rename pso_mcc_component_data.c to pso_mcc_component_data.cpp, and I
also had to add the preprocessor definition "EXPORTING_pso." The
problem that I'm having is that when trying to build the solution, I
get this error: "PSO error LNK2020: unresolved token (0A000008)
ref_count_obj_release". I know that ref_count_obj_release is
declared in mclmcr.h. The cause of this error is that the VS .NET
2003 compiler can't find the implementation of this function. How am
I supposed to fix this error? Where is this function implemented?
.
- Follow-Ups:
- Re: Using shared library within VS .NET 2003
- From: Francisco Zurita
- Re: Using shared library within VS .NET 2003
- Prev by Date: Re: Implementing zoom effect in matlab GUI
- Next by Date: connecting points of different plots
- Previous by thread: Odd Kologorov Smirnov result...
- Next by thread: Re: Using shared library within VS .NET 2003
- Index(es):
Relevant Pages
|