|
|
"Bull Dog" <ku.oc.balrs@xxxxxxxxxxxxx> wrote in message
news:ef15c9a.1@xxxxxxxxxxxxxxxxxxx
> Markus wrote:
>> I think you need to link against the library which has "myfunc"
>> or provide the linker myfunc.obj (in Windows).
>
> Yes, I think so.
> So I tried:
> mex -c mysubfunc1.cpp
> mex -c mysubfunc2.cpp
> mex myfunc.cpp mysubfunc1.obj mysubfunc2.obj
>
> Now I get:
> nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol
> ___argv
>
> Which, according to other threads in this site is because my Matlab
> isn't working with VSC++ properly (and the remedy confused me). I
> can compile myfunc and everything else that goes with it from VSC++
> using AJ's Mex Wizard. I just can't do it in Matlab.
>
> Please help!
> Thank you
> BullDog
did you run mex -setup to set MSVC as your compiler? Also see
your mexopts.bat file you are using.
|
|