Why do I receive link errors when generating code from a S-function that was generated by the S-function Builder in Simulink 5.0 (R13)?
古いコメントを表示
I have a model 'prov1.mdl' which has an S-function builder block. The S-function builder block implements a S-function named 'prova1'. I build the S-function to generate the .dll along with other files (.tlc and wrapper). I can successfully build this model via the GRT target.
In another model 'prov2.mdl', I have an S-function block, which uses the .dll created by the S-function builder in 'prov1.mdl'. I enter 'prova1' in the S-function name dialog for the S-function block. If I try to build this model via GRT, I get the following linker errors
### Linking ...
D:\MATLAB6p5\sys\perl\win32\bin\perl D:\MATLAB6p5\rtw\c\tools\mkvc_lnk.pl prov2.lnk prov2.obj prov2_data.obj grt_main.obj rt_sim.obj rt_nonfinite.obj
ext_svr.obj updown.obj ext_svr_transport.obj ext_work.obj prova1.obj
link -debug:full -debugtype:cv /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE
/RELEASE /NOLOGO -subsystem:console,4.0 wsock32.lib libc.lib oldnames.lib
kernel32.lib ws2_32.lib mswsock.lib advapi32.lib
D:\MATLAB6p5\rtw\c\lib\win32\rtwlib_vc.lib @prov2.lnk -out:..\prov2.exe
prova1.obj : error LNK2001: unresolved external symbol _prova1_Outputs_wrapper
..\prov2.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!