|
|||||||||||||
05-15-2012 07:31 AM
Hello,
I am trying to do a built of an Simulink Model. I am getting a series of Link errors.
The model is an input port directly connected to an output port.
I am using Matlab 2007b, MS Visual c++ 6.0 and NI Veristand 2011. I am getting following Link errors (attached):
### Linking ...
C:\PROGRA~1\MATLAB\R2007b\sys\perl\win32\bin\perl C:\PROGRA~1\MATLAB\R2007b\rtw\c\tools\mkvc_lnk.pl Test_Mdl.lnk Test_Mdl.obj rt_logging.obj rt_nonfinite.obj NIVeriStand_main.obj rt_sim.obj Test_Mdl.res
link /RELEASE /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib advapi32.lib wsock32.lib C:\VeriStand\2011\ModelInterface\tmw\lib\VC6.0\R20
Creating library Test_Mdl.lib and object Test_Mdl.exp
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
Test_Mdl.obj : error LNK2001: unresolved external symbol _memset
rt_logging.obj : error LNK2001: unresolved external symbol _memset
NIVeriStand_main.obj : error LNK2001: unresolved external symbol _memset
rt_sim.obj : error LNK2001: unresolved external symbol __fltused
Test_Mdl.obj : error LNK2001: unresolved external symbol __fltused
rt_logging.obj : error LNK2001: unresolved external symbol __fltused
rt_nonfinite.obj : error LNK2001: unresolved external symbol __fltused
NIVeriStand_main.obj : error LNK2001: unresolved external symbol __fltused
Test_Mdl.obj : error LNK2001: unresolved external symbol __ftol
rt_logging.obj : error LNK2001: unresolved external symbol __ftol
Test_Mdl.obj : error LNK2001: unresolved external symbol _memcpy
rt_logging.obj : error LNK2001: unresolved external symbol _memcpy
Test_Mdl.obj : error LNK2001: unresolved external symbol __imp__strncpy
rt_logging.obj : error LNK2001: unresolved external symbol __imp__strncpy
NIVeriStand_main.obj : error LNK2001: unresolved external symbol __imp__strncpy
Test_Mdl.obj : error LNK2001: unresolved external symbol _strlen
rt_logging.obj : error LNK2001: unresolved external symbol _strlen
NIVeriStand_main.obj : error LNK2001: unresolved external symbol _strlen
Test_Mdl.obj : error LNK2001: unresolved external symbol __imp__printf
rt_logging.obj : error LNK2001: unresolved external symbol __imp__printf
Test_Mdl.obj : error LNK2001: unresolved external symbol __imp__free
rt_logging.obj : error LNK2001: unresolved external symbol __imp__free
Test_Mdl.obj : error LNK2001: unresolved external symbol __imp__sprintf
rt_logging.obj : error LNK2001: unresolved external symbol __imp__sprintf
Test_Mdl.obj : error LNK2001: unresolved external symbol __imp__calloc
rt_logging.obj : error LNK2001: unresolved external symbol __imp__calloc
Test_Mdl.obj : error LNK2001: unresolved external symbol _strcmp
rt_logging.obj : error LNK2001: unresolved external symbol _strcmp
Test_Mdl.obj : error LNK2001: unresolved external symbol __imp__atoi
Test_Mdl.obj : error LNK2001: unresolved external symbol __imp__strrchr
Test_Mdl.obj : error LNK2001: unresolved external symbol _strcpy
rt_logging.obj : error LNK2001: unresolved external symbol __imp__malloc
rt_logging.obj : error LNK2001: unresolved external symbol __imp__fprintf
NIVeriStand_main.obj : error LNK2001: unresolved external symbol __imp__fprintf
rt_logging.obj : error LNK2001: unresolved external symbol __imp___iob
NIVeriStand_main.obj : error LNK2001: unresolved external symbol __imp___iob
rt_logging.obj : error LNK2001: unresolved external symbol __imp__floor
rt_logging.obj : error LNK2001: unresolved external symbol __imp__strncat
rt_logging.obj : error LNK2001: unresolved external symbol __imp__strchr
rt_logging.obj : error LNK2001: unresolved external symbol __imp__exit
NIVeriStand_main.obj : error LNK2001: unresolved external symbol __imp__exit
rt_logging.obj : error LNK2001: unresolved external symbol __imp__realloc
rt_logging.obj : error LNK2001: unresolved external symbol __imp__ldexp
rt_logging.obj : error LNK2001: unresolved external symbol __imp__remove
rt_logging.obj : error LNK2001: unresolved external symbol __imp__fclose
rt_logging.obj : error LNK2001: unresolved external symbol __imp__fopen
rt_logging.obj : error LNK2001: unresolved external symbol __imp__fwrite
rt_logging.obj : error LNK2001: unresolved external symbol __imp__fread
rt_logging.obj : error LNK2001: unresolved external symbol __imp__rewind
rt_nonfinite.obj : error LNK2001: unresolved external symbol __imp___isnan
NIVeriStand_main.obj : error LNK2001: unresolved external symbol __imp__tolower
Test_Mdl.dll : fatal error LNK1120: 32 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
D:\Data\f09561a\My Documents\MATLAB\Test_Mdl_niVeriStand_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\Data\f09561a\My Documents\MATLAB\Test_Mdl_niVeriStand_rtw>An_error
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Real-Time Workshop build procedure for model: 'Test_Mdl' aborted due to an error.
>>
Any help in this regard is Appreciated.
Thanks,
Piju
01-03-2013 06:54 AM
I also met this problem,who can solve it?Please tell me,thanks very much!MY EMAIL:534193809@qq.com
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page