LINK : fatal error LNK1104: cannot open file 'libmx.lib'

Questions about Marilou Open Devices Access (MODA)
Post Reply
wangxiao3952
Posts: 16
Joined: Tue Jan 20, 2009 6:37 pm

LINK : fatal error LNK1104: cannot open file 'libmx.lib'

Post by wangxiao3952 » Mon Feb 09, 2009 1:42 pm

HI, im doing a mex fonction,
Every time when i complier a new dll for matlab i have to search this file manuelly and add the path, and then i have to search libmex.lib and libmat.lib ,that is to say all the 3 addtional libraries. Is this normal?

LR
Posts: 305
Joined: Mon Feb 12, 2007 11:55 pm
Location: FR

Post by LR » Mon Feb 09, 2009 2:35 pm

Hi,

Does the MATLAB wizard shows good MATLAB includes/libs paths ? (as figure hereafter)

Image
LR

wangxiao3952
Posts: 16
Joined: Tue Jan 20, 2009 6:37 pm

Post by wangxiao3952 » Mon Feb 09, 2009 3:44 pm

Thx for replying,
yes the paths are about the same as in your picture, but in fact these 3 files are not in the include path, so i have to add another two paths which contains the 3 files.
these paths are:

C:\Program Files\MATLAB\R2008a\extern\lib\win32\microsoft
C:\Program Files\MATLAB\R2008a\sys\lcc\mex

LR
Posts: 305
Joined: Mon Feb 12, 2007 11:55 pm
Location: FR

Post by LR » Mon Feb 09, 2009 4:27 pm

Well, i will take a look about that, this week, and i'll try to improve the MATLAB Wizard for avoiding the problem.
LR

wangxiao3952
Posts: 16
Joined: Tue Jan 20, 2009 6:37 pm

Post by wangxiao3952 » Tue Feb 10, 2009 11:39 am

We can only add a single path and it will work:

C:\Program Files\MATLAB\R2008a\extern\lib\win32\microsoft

Post Reply