Invalid MEX-file: undefined symbol:_ZN​6matlab3me​x8Function​9getEngine​Ev

7 ビュー (過去 30 日間)
Brent
Brent 2024 年 12 月 15 日
回答済み: Saurabh 2024 年 12 月 17 日
Hello,
I got a fresh install of MATLAB_R2024b with all toolboxes. After generating a .mexa64 file to avoid incompatibility between MATLAB and mex, I got the following error when trying to use the file. It seems to suggest a problem with either the .mexa64 file or the getEngine() function.
+ cmake --install mex-build-Release --prefix "mex-install" --component matlab
-- Install configuration: "Release"
-- Installing: /home/brent/Documents/eagle-8-students/Module_software/ANC/Simulator/mex-install/./MexControllers.mexa64
Invalid MEX-file '/home/brent/Documents/eagle-8-students/Module_software/ANC/Simulator/mex-install/MexControllers.mexa64':
/home/brent/Documents/eagle-8-students/Module_software/ANC/Simulator/mex-install/MexControllers.mexa64: undefined symbol:
_ZN6matlab3mex8Function9getEngineEv
Error in eaglesim.Control (line 123)
MexControllers('new');
^^^^^^^^^^^^^^^^^^^^^
Error in study_controllers (line 56)
ctr = eaglesim.Control();
^^^^^^^^^^^^^^^^^^

回答 (1 件)

Saurabh
Saurabh 2024 年 12 月 17 日
hi @Brent,
This could possibly be the badly linked library. You probably need to add the appropriate library directory with a -L mex option and the specific library name with a -l (lower-case L) mex option.
Leverage the following MATLAB Answer thread to get help with this:
I hope this helps.

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by