Compiler cannot find "tmwtypes.h"
显示 更早的评论
[EDIT: Thu May 12 22:23:56 UTC 2011 Duplicate Removed - MKF]
I tried to deploy a MATLAB shared library on a Linux computer. When I compiled my C code on the linux computer, I got this strange error.
/opt/MATLAB/MATLAB_Compiler_Runtime/v714/extern/include/matrix.h(293): catastrophic error: could not open source file "tmwtypes.h" #include tmwtypes.h ^
maxtrix.h and tmwtypes.h are in the same folder. I am using x86-64 with suse linux
Does anyone know what the problem this is?
Thanks.
2 个评论
Kaustubha Govind
2011-5-4
What is the exact compiler command that you use? Also, have you tried the documentation example (http://www.mathworks.com/help/toolbox/compiler/f2-972343.html#f2-995584). Are you able to compile this as expected?
Kaustubha Govind
2011-5-4
Also, please delete the duplicate question you posted at http://www.mathworks.com/matlabcentral/answers/6718-compiler-cannot-find-tmwtypes-h
采纳的回答
更多回答(1 个)
Jason Ross
2011-5-3
0 个投票
These are header files, so they should be just text. Can you open them in a text editor? If you can't, check the permissions on the files. Also, check ownership if you are performing this operation under a different user context.
After that, check your environment and make sure that directory can be found during compilation.
2 个评论
Kenong
2011-5-3
Jason Ross
2011-5-4
Are the ls -l outputs the same?
Any differences in capitalization?
Otherwise, Kaustubha's questions are very valid.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!