Re: Using shared library within VS .NET 2003



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?
.



Relevant Pages

  • feedback
    ... Error message and unknown file ... Can anyone tell me what this means and if there is a way to fix it ... Portable disk) and when I loaded it onto my computer and go to the external ... To identify what loads when you boot use Autoruns (freeware from ...
    (microsoft.public.windowsxp.perform_maintain)
  • RE: Word has stopped working opening on Vista
    ... I found a fix and so far everything is working. ... This worked for me with Vista ... then error message saying cannot find file. ... but the word startup problem has persisted. ...
    (microsoft.public.word.application.errors)
  • Re: Problem installing FreeBSD 6.2 on laptop
    ... I am getting an error message, and do not know how to fix the problem. ... Jun 10 12:09:33 severino init: getty repeating too quickly on port ... X is misconfigured and it exits back to the console. ...
    (freebsd-questions)
  • Re: Crappy Computer (was something else)
    ... no good and didn't fix anything, or offered to fix a few files, then want ... setting in OE news area. ... I've got the odd error message, ... but I would contact my news provider and they would ...
    (soc.culture.scottish)
  • Re: ie6sp1 : Repair Function Blocked - Anyone know of a fix?
    ... I think that this proves that the error message could easily be a huge ... Ran repair - no joy ...
    (microsoft.public.windows.inetexplorer.ie6.browser)