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?

답변 (3개)

Kaustubha Govind
Kaustubha Govind 2012년 4월 4일

0 개 추천

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

Ken Atwell
Ken Atwell 2012년 4월 4일
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.
Image Analyst
Image Analyst 2012년 4월 4일
And is the computer an Apple II or an IBM PC-AT?

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

NS
NS 2012년 4월 5일

0 개 추천

yes, -rtvdp is indeed a demo file. I was just using it as an example that I could not complete my RTW Builder with the following error as stated. I'm using an really old system because I don't have the latest driver for my hardware.
'Feedback Software for MATLAB Digital Pendulum Control System' 33-935/936 V61 MATLAB 6.1 WIN 95/98/NT/2000
It runs on a intel core 2 quad processor. The visual studio is a standard version, yes, released 1998. I did not install the new one because I'm unsure whether the MATLAB would actually detect the newer version in the first place. I'm configuring it for RTW, but I encountered that if the build has a problem, it could be because my -xpcsetup directory isn't properly assigned.

댓글 수: 1

Kaustubha Govind
Kaustubha Govind 2012년 4월 5일
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
Arun 2013년 12월 25일

0 개 추천

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.

카테고리

질문:

NS
2012년 4월 4일

답변:

2013년 12월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by