Compiling mex files - Fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory

6 次查看(过去 30 天)
I've got an old mex file to run on my laptop and I got an error as in the title: Fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory. Mex is working without problem on another computer. I'm using 64-bit computer and 64-bit Matlab R2012b. To compile I have VS 2005. I've tried to change to VS 2010, but I've got more errors (four LNK2019). I was looking how to solve my problem, but nothing helps. I've stuck with it for 4 days.
I have a stdint.h file in folder with all files from project and on the path - doesn't work.
I've tried to show the location of the files as:
mex -l"C:\Users\Maria\Folder_with_project" mex_file.cpp
also:
mex -l"C:\Users\Maria\Folder_with_project\stdint.h" mex_file.cpp
I've tried also with -I (upper-version I) as includes.
In all cases there was the same error. Does anybody has any idea how to solve it?
  10 个评论
Walter Roberson
Walter Roberson 2016-7-12
The "There is still the same error" response was caused by having omitted the -I parameter that had been described earlier. Both the -I and -L and -l are needed.

请先登录,再进行评论。

采纳的回答

Maria Baczewska
Maria Baczewska 2016-7-12
I use the solution as Walter Roberson wrote.
I compile a mex file using firstly -lcbw64 (lower case of L) and then location of the cbw64.dll file with -L.
mex -lcbw64 -L"location_of_cbw64.dll" mex_filename

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by