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

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

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

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
Hi,

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

LR

wangxiao3952
Posts: 16
Joined: Tue Jan 20, 2009 6:37 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
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
We can only add a single path and it will work:

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