Compiling mex files - Fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
Ältere Kommentare anzeigen
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 Kommentare
José-Luis
am 5 Jul. 2016
Have you tried
mex -setup
Maria Baczewska
am 5 Jul. 2016
Walter Roberson
am 5 Jul. 2016
Include directories should be indicated with -I which is upper-case letter I. -l (lower-case letter L) would be for individual library files, and -L (upper-case letter L) would be for naming library directories.
Please show us the output of
mex -v -I"C:\Users\Maria\Folder_with_project" mex_file.cpp
Maria Baczewska
am 5 Jul. 2016
Bearbeitet: Walter Roberson
am 5 Jul. 2016
José-Luis
am 5 Jul. 2016
Is it the same version of Matlab in both computers? Are both versions 64bits? Did you use the same compiler on both?
Maria Baczewska
am 5 Jul. 2016
Walter Roberson
am 5 Jul. 2016
Those error messages are consistent with not having linked against a Measurement Computing cbw64.dll . You may need to add a -L option naming the directory it is in, and using -lcbw64 (lower-case L there)
Maria Baczewska
am 6 Jul. 2016
Walter Roberson
am 12 Jul. 2016
Maria commented to my solution:
This solution works!! Thank you!
Walter Roberson
am 12 Jul. 2016
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Compiler finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!