Re: Using shared library within VS .NET 2003
- From: "Francisco Zurita" <fzurita@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Dec 2005 07:50:20 -0500
Well, nevermind that problem, I got it working, had to add a library
to the linker. But now I get the following error message when
runnning the application:
Undefined command/function 'colordef'.
Error in ==> hgrc at 54
Error in ==> matlabrc at 40
How do I fix this?
Francisco Zurita wrote:
>
>
> 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?
.
- References:
- Using shared library within VS .NET 2003
- From: Francisco Zurita
- Using shared library within VS .NET 2003
- Prev by Date: Can a axis have multiple intervals in a fixed scale??
- Next by Date: Re: Integrating a vector
- Previous by thread: Using shared library within VS .NET 2003
- Next by thread: connecting points of different plots
- Index(es):
Relevant Pages
|