Build Problem
3 views (last 30 days)
Show older comments
Creating library ..\rtvdp.lib and object ..\rtvdp.exp
rtvdp.obj : error LNK2001: unresolved external symbol _memcpy
ode5.obj : error LNK2001: unresolved external symbol _memcpy
updown.obj : error LNK2001: unresolved external symbol _memcpy
ext_svr.obj : error LNK2001: unresolved external symbol _memcpy
rtvdp.obj : error LNK2001: unresolved external symbol _memset
..\rtvdp.rwd : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
??? Error using ==> make_rtw
Error using ==> rtw_c
Error(s) encountered while building model "rtvdp"
Those are the error I encountered, using matlab6.1 and visual C++ 6.0. I used the 'xpcsetup' to make sure my directory is fine, used mex-setup to choose visual c++, what elset i'm not doing here?
0 Comments
Answers (3)
Kaustubha Govind
on 4 Apr 2012
I am a little confused - rtvdp is the demo model used for the Real-Time Windows Target product (the System Target File that is used in the Configuration Parameters>Real-Time Workshop (or Code Generation) pane should be rtwin.tlc). Did you configure it for xPC Target by changing the System Target File to xpctarget.tlc or xpctargetert.tlc? Also, are you using the Visual Studio Professional Edition or the free version?
2 Comments
Ken Atwell
on 4 Apr 2012
He is using Visual C++ 6.0, which predates the free Express compilers (it was released in 1998). HIs version of MATLAB dates from 2001.
NS
on 5 Apr 2012
1 Comment
Kaustubha Govind
on 5 Apr 2012
If you want to run a xPC Target test, I would recommend using an xPC Target demo like xpcosc instead. rtvdp is configured for Real-Time Windows Target.
Arun
on 25 Dec 2013
I'm also facing the same problem? Did the same things - on Win XP machine with Matlab 6.5 and Microsoft Visual C++ 6.0 standard edition.
It would be great if some one could suggest a work around.
0 Comments
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!