フィルターのクリア

Mex file compiling issue

10 ビュー (過去 30 日間)
Aidin Biibosunov
Aidin Biibosunov 2023 年 2 月 23 日
回答済み: Aidin Biibosunov 2023 年 3 月 7 日
Hello, I have a problem with mex.
When I try to run a test c file
mex timestwo.c
I get:
Building with 'gcc'.
Error using mex
'/home/aidin/.../timestwo.mexa64' is not a MEX file. For more information, see File is not a MEX file.
My specs:
MATLAB Version: 9.13.0.2166757 (R2022b) Update 4
MATLAB License Number: 722433
Operating System: Linux 5.15.94-1-MANJARO #1 SMP PREEMPT Tue Feb 14 19:45:58 UTC 2023 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.13 (R2022b)
Simulink Version 10.6 (R2022b)
Symbolic Math Toolbox Version 9.2 (R2022b)
gcc version 8.5.0 (GCC)

採用された回答

Aidin Biibosunov
Aidin Biibosunov 2023 年 3 月 7 日
The problem had to do with compiler versions and OS(Manjaro).
I found the solution here:
https://wiki.archlinux.org/title/MATLAB

その他の回答 (1 件)

Tamir Suliman
Tamir Suliman 2023 年 2 月 23 日
Your MEX file was not created successfully. This can happen if there were errors during the compilation process. To troubleshoot this issue, you can try
Check if the C file timestwo.c compiles without errors
Could be also errors in the C code, incorrect compiler settings or incompatibilities between the Matlab version and the compiler.

カテゴリ

Help Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by