R2104a + Visual Studio 2013 Errors

2 views (last 30 days)
Michal
Michal on 23 Jul 2014
First time poster here.
I am trying to integrate matlab engine into my code. In visual studio I have done the following:
(MSVC project properties)
  • 'Additional include directories' - C:\Program Files\MATLAB\R2014a\extern\include
  • 'Precompiled Header' - Not Using Precompiled Headers
  • 'Additional Library Directories' - C:\Program Files\MATLAB\R2014a\extern\lib\win32
  • 'Additional Dependencies' - mclcommain.lib
I am linking 'mclcommain.lib' because this is the only lib i find in the ..\lib\win32 folder. Although I see that in \lib\win64 I do have 'libmex.lib' , 'libeng.lib' , 'libmx.lib' and a whole bunch of other libs...
I want to run a win32 application but the error I get is the following:
error LNK1104: cannot open file 'mclcommain.lib'.
I even tried linking against the x64 libs but then I get that it cannot the first call to Engine *ep ->
T = mxCreateDoubleMatrix(1, 10, mxREAL); // breaks down right here...
What should I do? Seems like my copy of Matlab didnt ship with the right libraries?

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!