loadlibrary unable to find <vector>
古いコメントを表示
Hello,
I'm trying to use Dynamixel with MATLAB R2025b. It was working a few days, but then we tried setting up matlab on another user's account (we all have individual licenses). At first it had pathdef.m issues, but we resolved it on that account. But then we got this issue when trying to test dynamixel
Error using loadlibrary
Failed to preprocess the input file.
Output from preprocessor is:In file included from C:\Users\Public\Documents\DynamixelSDK-4.0.3\ros\dynamixel_sdk\include\dynamixel_sdk\group_bulk_read.h:27,
from C:\Users\Public\Documents\DynamixelSDK-4.0.3\ros\dynamixel_sdk\include\dynamixel_sdk\dynamixel_sdk.h:26:
C:\Users\Public\Documents\DynamixelSDK-4.0.3\ros\dynamixel_sdk\include\dynamixel_sdk\packet_handler.h:35:10: fatal error: vector: No such file or directory
#include <vector>
^~~~~~~~
compilation terminated.
Error in initialize_library (line 17)
[notfound, warnings] = loadlibrary(lib_name, 'dynamixel_sdk.h', 'addheader', 'port_handler.h', 'addheader', 'packet_handler.h', 'addheader', 'group_sync_read.h', 'addheader', 'group_sync_write.h');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in run (line 112)
evalin('caller', strcat(scriptStem, ';'));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in main_7joint_sync_pegboard_v6_darsh (line 54)
run('initialize_library.m')
We confirmed that MATLAB has the C/C++ compiler from MingW (from the Add-on Installer), and that mex -setup was using MingW for both C and C++. We're not sure what could be causing this issue then.
When we switched back to my account (which had no issues a week ago), we were first hit with the pathdef.m issue again, and after resolving it (restoredefaultpath + savepath + adding dynamixel subfolders to path), we got the same error of being unable to find vector header file.
My hunch is that trying to setup other user accounts caused something to be dropped from the path, but I have no way of verifying this, or any ideas on how to fix the current issue on my account.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB Support for MinGW-w64 C/C++ Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!