collect2.exe: error: ld returned 1 exit status

30 ビュー (過去 30 日間)
Rohit Pardikar
Rohit Pardikar 2019 年 6 月 14 日
回答済み: Shivani 2024 年 6 月 18 日
I am trying to build S function to perform SIL on my model. but I am getting an error for the function "Runnable_Step" which I am calling from "output" (Code description) section of S function. The error is as below :
C:\Users\105316~1\AppData\Local\Temp\mex_75352478274417_9204\S_Function_EVDC_wrapper.obj: In function `S_Function_EVDC_Outputs_wrapper': C:/Users/105316885/Documents/MATLAB/14JUN_SIL/S_Function_EVDC_wrapper.c:64: undefined reference to `Runnable_Step' collect2.exe: error: ld returned 1 exit status
Can anyone suggest any solution.
  4 件のコメント
亚楠 柴
亚楠 柴 2023 年 3 月 16 日
me too
chaoyang
chaoyang 2024 年 6 月 18 日
Same problem, have you find the solution?

サインインしてコメントする。

回答 (1 件)

Shivani
Shivani 2024 年 6 月 18 日
Hello,
It looks like you are encountering this issue due to a missing 'winsock' library.
The following MATLAB Answer thread discusses the speific workarounds to address this issue: https://www.mathworks.com/matlabcentral/answers/1652320-collect2-exe-error-id-returned-1-exit-status-when-building-s-function
If the issue persists, contact the MathWorks Technical Support Team using the following link, as they will be able to provide a more accurate solution: https://www.mathworks.com/support/contact_us.html

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by