Re: S-Function and DLL MEX-File



Marco Polloni wrote:
> I'm not sure I've done the right thing. I've not found the
>
>
>>Librarian->General page
>
>
> (I've got Visual Studio 6.0), so I put the filename sfun_GASDYN.def in
> C/C++ -> Preprocessor definitions.
>
> During the linking I got
>
> sfun_GASDYN.def : error LNK2001: unresolved external symbol mexfunction
> Debug/sfun_GASDYN.lib : fatal error LNK1120: 1 unresolved externals
> LINK : fatal error LNK1141: failure during build of exports file
>
> I know I'm making you losing time, but if you doesn't mean, can I have
> any more explanations?
>
> Thanks anyway.
>
> Marco
>


The def file goes with the mexFunction or MEXFUNCTION dll. According to the
link error you're producing a static library???

Go back to the beginning where you got the corrupt file problem and just don't
list the .mod in your compilation of the C function.
.