comp.soft-sys.matlab
[Top] [All Lists]

Re: error LNK2001: unresolved external symbol

Subject: Re: error LNK2001: unresolved external symbol
From: "Markus"
Date: Thu, 22 Sep 2005 13:49:22 +0300
Newsgroups: comp.soft-sys.matlab
"Bull Dog" <ku.oc.balrs@xxxxxxxxxxxxx> wrote in message 
news:ef15c9a.3@xxxxxxxxxxxxxxxxxxx
> Markus wrote:
>
>> did you run mex -setup to set MSVC as your compiler? Also see
>> your mexopts.bat file you are using.
>>
>>
>>
>
> Yes, I did run setup to choose MSVC as the compiler.
> But it turned out the mexopts.bat was not located on my Matlab path.
> It is now included in the path, so when I do "which mexopts.bat" it
> tells me the correct directory (before, it couldn't see it at all).
>
> However, the error is still there. Do I need to move the mexopts.bat
> file somewhere else? It is currently in
> C:\Documents and Settings\BullDog\Application
> Data\Mathworks\Matlab\R14
>
> Thanks
> BullDog

I would rather keep it in working directory and use mex with
-f switch e.g.

mex -f mexopts.bat file.c

In the options file check that appropriate include and library directories
are specified. Not much else I can think of.... 



<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy