Compiling error : Unknown file extension ' '
이전 댓글 표시
I am compiling a file that contains a caller block, and that c caller block is calling c file that have many header files included. But while compiling its giving error Unknown "file extension ' ' ". Can anyone tell me how to solve this one?
댓글 수: 4
Fangjun Jiang
2024년 8월 23일
That message indicates the file extension is a whitespace. Check if there is any file name that might be accidently inserted a whitespace in its extension.
AKHILA
2024년 8월 26일
Aravind
2024년 8월 26일
Hi,
Can you share your files or maybe some reproduction steps for this error?
AKHILA
2024년 8월 26일
답변 (1개)
Prasanna
2024년 9월 9일
0 개 추천
Hi AKHILA,
The error message "Unknown file extension ' '" typically occurs when a C/C++ compiler encounters a file with an unrecognized or missing extension. To solve the issue, you can perform the following debugging steps to pinpoint the error:
- Check file extensions for whitespace issues and hidden characters
- Verify the file paths and double check the paths to the source and header files in the project build configuration
- Check the include directives in your C files
- Verify your compiler settings to check if it is configured to compile the file types you are using
For more information regarding the following issue, you can refer the following references as well:
- Unknown file extension mex: https://www.mathworks.com/matlabcentral/answers/623573-error-using-mex-unknown-file-extension-matlab-ubuntu
- File extension not recognized error: https://www.mathworks.com/matlabcentral/answers/601561-file-extension-not-recognized
Hope this helps!
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!