MATLAB Answers

0

Compiling mex-files from Visual Studio - cannot open input

Asked by Etienne Coetzee on 8 Jul 2013
Hi Folks
I am trying to compile a mex file from VS2008, and then get the following error:
Error 1 fatal error LNK1181: cannot open input file 'libmx.lib;libmex.lib' LINK
I have followed this example http://www.mathworks.co.uk/support/solutions/en/data/1-4EO2YE/index.html?product=SL&solution=1-4EO2YE and am pretty sure everything is the same. I am really not sure why this would happen but I have had this problem on two different machines. Is there a working example with the source files available?
Any help would be appreciated.
Regards
Etienne

  1 Comment

I'm not much of a Visual Studio user, but it looks like you have not configured the Linker -> Input -> Additional Dependencies properly. Do you need the semicolon between the two file names?

Sign in to comment.

Products

0 Answers