필터 지우기
필터 지우기

error LNK2005 on Accelerator Mode Simulation

조회 수: 1 (최근 30일)
paolo_toll
paolo_toll 2015년 2월 27일
댓글: paolo_toll 2018년 12월 12일
Hello, I created a simulink library containing an S-function named Simulink_2_C_link with 2 modules: Simulink_2_C_link.c and Simulink_2_C_link_wrapper.c Then I used this S-function in a Simulink model called Avvolgimento02_senza_alim. This model works fine in Normal Mode Simulation.
When I try to simulate it in Accelerator Mode I obtain a lot of errors like these:
Simulink_2_C_link.obj : error LNK2005: DYNAMIC_DIMENSION_DEF already defined in Avvolgimento02_senza_alim_acc.obj Simulink_2_C_link.obj : error LNK2005: DYNAMIC_DIMENSION already defined in Avvolgimento02_senza_alim_acc.obj Simulink_2_C_link.obj : error LNK2005: mexFunction already defined in Avvolgimento02_senza_alim_acc.obj
...
I think this is because "simulink.c" is included in both Simulink_2_C_link.c and Avvolgimento02_senza_alim_acc.c but these .c modules are created automatically from Simulink.
What can I do to resolve the problem? Thank you in advance,
paolo_toll
  댓글 수: 2
Co Melissant
Co Melissant 2018년 12월 12일
ever solved this?
paolo_toll
paolo_toll 2018년 12월 12일
no

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by