Using shared library within VS .NET 2003



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

  • Re: Problems with NAG f95
    ... I still didn't fix the problem. ... perhaps some other hints will be useful: ... is too new for that compiler? ... Prev by Date: ...
    (comp.lang.fortran)
  • common problem...cant find answer :(
    ... The compiler does not give me any errors...and it Prints the question ... but does not wait for a responce from the user. ... and more importantly...how do i fix it? ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Warning: Because of COMMON...............
    ... Thank you for your reply glen.However, my concern is why a source code ... it does not.Do you think that this has to do with using a newer compiler? ... am finding it quite hard to fix the problem....The variables are so ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: STM32 ARM toolset advice?
    ... Compulsory car comparison: would you buy a car where the motor block is ... you yourself using a self-help book) can fix? ... compilers work better than a compiler vendor. ...
    (comp.arch.embedded)
  • Re: How many bytes per Italian character?
    ... There's a reason I don't use free open-source products: ... someone once said "Well, you should use gcc because that way, if you find a bug ... I used to work for a compiler company. ... *know* how hard it is to fix bugs in optimizing compilers. ...
    (microsoft.public.vc.mfc)