COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### error make_rtw and rtw_c

• Email
• Follow

hello I am Andhika from ITS Indonesia.
I'm trying to control the inverted pendulum using simulink and fuzzy with MATLAB 6.5.1.
after I build my model, there was an error with a message like:

Error executing build command: Error using ==> make_rtw
Error using ==> rtw_c
Error(s) encountered while building model "sim_andhika_new"

these are the following things coming in the matlab window:
### Starting Real-Time Workshop build procedure for model: sim_andhika_new
### Generating code into build directory: .\sim_andhika_new_rtwin
### Invoking Target Language Compiler on sim_andhika_new.rtw
tlc -r .\sim_andhika_new_rtwin\sim_andhika_new.rtw  'C:\MATLAB6p5\toolbox\rtw\targets\fbk\fbk\rtwinfbk.tlc' -O.\sim_andhika_new_rtwin  '-IC:\MATLAB6p5\toolbox\rtw\targets\fbk\fbk' '-IC:\MATLAB6p5\rtw\c\tlc\mw' '-IC:\MATLAB6p5\rtw\c\tlc\lib' '-IC:\MATLAB6p5\rtw\c\tlc\blocks' '-IC:\MATLAB6p5\rtw\c\tlc\fixpt'  -aCCOptimize=1 -aEnforceIntegerDowncast=1 -aExtMode=1 -aFoldNonRolledExpr=1 -aForceParamTrailComments=0 -aGenerateComments=1 -aGenerateReport=0 -aIncDataTypeInIds=0 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aInlineParameters=0 -aInlinedPrmAccess="Literals" -aLocalBlockOutputs=1 -aMaxRTWIdLen=31 -aPrefixModelToSubsysFcnNames=1 -aRTWVerbose=1 -aRebuildAll=0 -aRollThreshold=5 -aShowEliminatedStatements=0 -aReleaseVersion=13.1 -p10000

.....
### Initial pass through model to cache user defined code
................
### Caching model source code
................................................................................
................................................................................
...................................................
### Writing source file sim_andhika_new.c
..
### Writing source file sim_andhika_new_data.c
### TLC code generation complete.
### Generating TLC interface API.
.............................................
### Creating data type transition file sim_andhika_new_dt.h
..### sim_andhika_new.mk which is generated from C:\MATLAB6p5\toolbox\rtw\targets\fbk\fbk\winfbk_vc.tmf is up to date
### Building sim_andhika_new: .\sim_andhika_new.bat

D:\Andhika\sim_andhika_new_rtwin>set MATLAB=C:\MATLAB6p5

D:\Andhika\sim_andhika_new_rtwin>set MSVCDir=c:\program files\microsoft visual studio\vc98

D:\Andhika\sim_andhika_new_rtwin>set MSDevDir=c:\program files\microsoft visual studio\common\msdev98

D:\Andhika\sim_andhika_new_rtwin>C:\MATLAB6p5\rtw\bin\win32\envcheck INCLUDE "c:\program files\microsoft visual studio\vc98\include"

D:\Andhika\sim_andhika_new_rtwin>if errorlevel 1 goto vcvars32

D:\Andhika\sim_andhika_new_rtwin>set VSCommonDir=\common

D:\Andhika\sim_andhika_new_rtwin>call "C:\MATLAB6p5\toolbox\rtw\rtw\private\vcvars32_600.bat"
Setting environment for using Microsoft Visual C++ tools.

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0

### Compiling sim_andhika_new.c
cl -c -Zp8 -J -Gd -W3 -GF -Gs1048576 -O2 -Oa  -DEXT_MODE -DMODEL=sim_andhika_new -DRT -DNUMST=2  -DTID01EQ=1 -DNCSTATES=4  -DMT=0  sim_andhika_new.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86

sim_andhika_new.c
sim_andhika_new_dt.h(51) : error C2039: 'If_Action_d' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(52) : error C2039: 'If_Action_c' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(54) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(56) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(58) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(60) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(62) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(63) : error C2039: 'If_Action_dd' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(64) : error C2039: 'If_Action_dc' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(65) : error C2039: 'If_Action_dh' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(66) : error C2039: 'If_Action_dg' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(67) : error C2039: 'If_Action_dl' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(68) : error C2039: 'If_Action_dk' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(69) : error C2039: 'If_Action_cz' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(70) : error C2039: 'If_Action_cy' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(71) : error C2039: 'If_Action_cb' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(72) : error C2039: 'If_Action_ca' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(74) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(76) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(78) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(80) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(82) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new_dt.h(83) : error C2039: 'If_Action_bp' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(84) : error C2039: 'If_Action_bo' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new_dt.h(85) : error C2039: 'If_Action_bs' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3224) : error C2039: 'If_Action_d' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3228) : error C2039: 'If_Action_c' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3236) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3244) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3252) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3260) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3268) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3272) : error C2039: 'If_Action_dd' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3276) : error C2039: 'If_Action_dc' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3280) : error C2039: 'If_Action_dh' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3284) : error C2039: 'If_Action_dg' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3288) : error C2039: 'If_Action_dl' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3292) : error C2039: 'If_Action_dk' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3296) : error C2039: 'If_Action_cz' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3300) : error C2039: 'If_Action_cy' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3304) : error C2039: 'If_Action_cb' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3308) : error C2039: 'If_Action_ca' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3316) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3324) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3332) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3340) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3348) : error C2039: 'x_a' : is not a member of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.h(50) : see declaration of '_rtB_sim_andhika_new_If_Acti_e'
sim_andhika_new.c(3352) : error C2039: 'If_Action_bp' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3356) : error C2039: 'If_Action_bo' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
sim_andhika_new.c(3360) : error C2039: 'If_Action_bs' : is not a member of '_BlockIO'
sim_andhika_new.h(66) : see declaration of '_BlockIO'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

I need your help, because i cannot find the solution..
thanks a lot

best regard
Andhika Rizki Pratama

 0

See related articles to this posting

0 Replies
426 Views

Similar Articles

12/4/2013 6:28:43 AM
page loaded in 54983 ms. (0)

Similar Artilces:

error
I am trying to pass messages with in a cluster of machines to randomally communicate with each other, with processor 0 acting as the controller of the group by feeding the messages in the environment and then shutting down the environment but I am receiving this error p1_14023: p4_error: interrupt SIGSEGV: 11 p3_12798: p4_error: socket_recv_on_fd: invalid data type =: 16777216 Broken pipe Here is my code #include "mpi.h" #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <time.h> /*processor's rank */ int rank; int go_ahead; /* Flags that are set to 0 which means that there is not virus present so allow incoming and outgoing messages. If it is a 1 then do not allow incoming and outgoing messages */ int flag_in = 0; int flag_out = 0; /*Number of processors*/ int numprocs; /* Real time counters that count the incoming and outgoing message during an interval of time*/ int m_real_time_out=0; int m_real_time_in=0; int done = 0; int num_of_messages[16]; int iamdone = 0; int confidence_level = 0; int decision_of_state = 0; float confidence_level2 = 0.0; float decision_of_state2 = 0; float show[2]; float show2[2

Error
Hi, I am getting an error. (Make Error: no source for object d:\c55\apps\app.obj). Why is this happening? Thanks, Jerry

No error?
Hi, all, I installed php on my com yesterday and everything works fine IF there is no error in a script. However, if there is one, the server (apache2) simply returns a blank page instead of a message regarding any errors. This makes debugging like hell... Does anybody know why this is happening? I am using XP Pro, Apache2 running on port 1919, IIS running on 80, but all the php scripts are run on Apache2. cheers ==James== In article <tcD%a.11931$9f7.1374143@news02.tsnz.net>, James Jiao wrote: > I installed php on my com yesterday and everything works fine IF there is no > error in a script. However, if there is one, the server (apache2) simply > returns a blank page instead of a message regarding any errors. This makes > debugging like hell... Does anybody know why this is happening? I am using > XP Pro, Apache2 running on port 1919, IIS running on 80, but all the php > scripts are run on Apache2. Check your error_reporting setting in php.ini. Mine looks like: error_reporting = E_ALL & ~E_NOTICE HTH, Dave Check your display_errors directive in php.ini. It should be on. -- Peter James Editor-in-Chief, php|architect Magazine Error: Hello, I trying to design and simulate cmos Op-amp. I have done DRC,LVS and QRC without any error here is a screenshot: DRC: http://i44.tinypic.com/2428jkk.png Note: there are some warnings however my professor asked us to ignore these errors. LVS: http://tinypic.com/r/rmiq6b/5 and http://tinypic.com/r/28jiln6/5 QRC: http://tinypic.com/r/2w5nfpd/5 ERROR (OSSHNL-116): Unable to descend into any of the views defined in the view list, 'spectre av_extracted', for the instance 'avD24_1' in cell 'op-amp'. Either add one of these views to the library 'PRIMLIB', cell 'nfetdiode' or modify the view list to contain an existing view. End netlisting Jan 24 15:11:01 2012 ERROR (OSSHNL-514): Netlisting failed due to errors reported before. Netlist may be corrupt or may not be produced at all. Fix reported errors and netlist again. ....unsuccessful. Is that a problem with the schematic or layout that I need to modify. Regards Zubair. MORE INFO: Hello, I dont have avD24_1 in my schematic it comes from the parasitic extracts after QRC. Here are the screenshots of my schematic http://tinypic.com/r/sbhml2/5 and http://tinypic.com Error? This integral below give 0 on Mathematica 5.0 Integrate[Sqrt[R^2 - x^2], {x, -R, -R + d}, Assumptions -> R > 0 && d > 0 && d < 2R] This is a mistake I think, isn't it? Thanks, Baris Altunkaynak Hello ! Very interesting question ! As Integrate[Sqrt[r^2 - x^2], x] = (1/2)*(x*Sqrt[r^2 - x^2] + r^2*ArcTan[x/Sqrt[r^2 - x^2]]) you will have to use complex numbers using Newton-Leibnitz's formula with R<d<2R ! As (I suppose) you want to compute a surface under a circle, it is not good ! so I would suggest that you should inetgrate only with d<R ! Indeed : In[34]:= Integrate[Sqrt[r^2 - x^2], {x, -r, -r + d}, Assumptions -> {d > 0, r > 0, d < r}] Out[34]= (1/4)*(2*Sqrt[(-d)*(d - 2*r)]*(d - r) + Pi*r^2 + 2*r^2*ArcSin[(d - r)/r]) So if d>R, just compute for x from 0 to d-R and add Pi r^2/4 ! Meilleures salutations Florian Jaccard -----Message d'origine----- De : Baris Altunkaynak [mailto:altunkai@boun.edu.tr] Envoy� : ven., 21. novembre 2003 11:13 � : mathgroup@smc.vnet.net Objet : Error? This integral below give 0 on Mathematica 5.0 Integrate[Sqrt[R^2 an_error I made a program but when I try to compile it gives me this:$gcc -o main.c $In file included from stiva.c:3, from main.c:4: stiva.h:7: error: redefinition of 'struct stiva' stiva.h:12: error: redefinition of typedef 'Stiva' stiva.h:12: error: previous declaration of 'Stiva' was here stiva.h:12: error: redefinition of typedef 'STIVA' stiva.h:12: error: previous declaration of 'STIVA' was here$ this is stiva.h from were the error is [code] #define adevarat 1 #define fals 0 #define MAX 256 struct stiva { int v[MAX]; int sp; }; typedef struct stiva Stiva, *STIVA; STIVA push(STIVA st, int x); STIVA pop(STIVA st); int top(STIVA st); void destroy(STIVA st); STIVA news(void); void afst(STIVA st); char estevida(STIVA st); char esteplina(STIVA st); [/code] thx if the onher parts are needed tell me On 31 May 2007 06:05:47 -0700, strycnine.r@gmail.com <strycnine.r@gmail.com> wrote: > > > I made a program but when I try to compile it gives me this: > $gcc -o main.c >$In file included from stiva.c:3, > from main.c:4: > stiva.h:7: error: redefinition of 'struct stiva' >

Error
There is an error in Mode. It fucked me. Oops.

Error occurring in error handler
I have a global error handler that up until today has been working flawlessly. Let me first provide the relevant code **************************************************************** On Error GoTo Err_Ctrl 'This code is generating the error If Nz(Me.SubformCont.Form!txtUsage,"") = "' Then Msg "There's a problem" GoTo Exit_Sub End If Exit_Sub DoCmd.Echo True DoCmd.SetWarnings = True Err_Ctrl: errMsgStr = "" ctrlfnctnm = "ProcedureName" Call Formname_err(Err.Number, Err.Description, Err.Source, ctrlfnctnm, errMsgStr) Resume Exit_Sub ********************************************************************** I'm having to type the code in by hand today, so I won't include the Formname_err procedure unless someone requests it. The error is occuring on the following line: If Nz(Me.SubformCont.Form!txtUsage,"") = "' Then I can only determine this original error that causes the code to go to the Error Handler by stepping through the code. The error is: "You entered and expression that has no value" The error refers to the subform text box, txtUsage. This is a correct error

chemmacros, exp13.sty error error
Hi, I'm trying to write chemistry with oxidation numbers and if I google correctly chemmacros appear to be a good way to do this. But when I try to use it I get complaines about exp13.sty, about which I can find nothing useful. Code: \documentclass[a4paper,12pt]{article} \usepackage[version=3]{mhchem} \usepackage{chemmacros} \begin{document} \ce{\ox{1,H}} \end{document} And the error message is: ! LaTeX Error: File `exp13.sty' not found. Any suggestions? Par -- Par usenet@hunter-gatherer.org What was it they were saying about.../contrib/l3kernel.tds.zip mirrors.ctan.org/install/macros/latex/contrib/l3packages.tds.zip instructions for using those tds files are to be found in the faq http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-tds-zip -- Robin Fairbairns, Cambridge my address is @cl.cam.ac.uk, regardless of the header. sorry about that. Robin Fairbairns <rf10@cl.cam.ac.uk>: > you expl3 is part of the l3kernel bundle. > chemmacros also uses stuff from the l3packages bundle. Thanks! Got them in (I typed 13 rather then l3, which confused google). But now it complains ! Package l3names Error

error C2197 error
Hello I am getting this error: error C2197: 'long (__stdcall *)(void)' : too many actual parameters Error executing cl.exe. The offending line is: if ((lResult = (*pfnGetProviderList)(0x00020000, pProviderList)) != 0) // this one { goto ProviderInstall_freeProviderList; } I am converting this C code into C++. Is the problem that compiler does not understand the parameters required for pfnGetProviderList? How can I fix? Angus wrote: > Hello > > I am getting this error: > > error C2197: 'long (__stdcall *)(void)' : too many actual parameters > Error executing cl.exe. > > The offending line is: > > if ((lResult = (*pfnGetProviderList)(0x00020000, > pProviderList)) != 0) // this one > { > goto ProviderInstall_freeProviderList; > } > > I am converting this C code into C++. Is the problem that compiler > does not understand the parameters required for pfnGetProviderList? > How can I fix? Specific implementations and their diagnostics are off-topic for this group, but see the following link: <http://support.microsoft.com/kb/117428