We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All, Please help me on this problem and it is urgent. i have a EC++ class called ADC which i am trying to access from RTX tiny task. I am getting the following errors for ADC class file ADC.H(25): warning C34: 'ADC': missing declaration specifiers ADC.H(25): error C42: 'ADC': not in formal parameter list ADC.H(25): error C25: syntax error near '{' and following for the RTX Tiny file RTX_EX2.C(30): warning C34: 'adc_object0': missing declaration specifiers RTX_EX2.C(30): error C42: 'adc_object0': not in formal parameter list RTX_EX2.C(31): warning C34: 'ADC': missing declaration specifiers RTX_EX2.C(31): error C42: 'ADC': not in formal parameter list RTX_EX2.C(31): error C25: syntax error near '*' I am using both uvision 2 and 3 IDE with C166 compiler.These two files compiles and run correctly on their own. Your expert help is much appriciated. wasantha
You have a missing semicolon on line 17.
Thank you I have not missed a semi colon; the erros are misleading.I can use them sepeartely.but the problem comes when i use them togther.have you tried EC++ classes with RTX before. Thank you very much
"the erros are misleading" When the error messages seem to be misleading, it is invariably due to some flaw somewhere before the first reported message - such as a missing semicolon, as Stefan suggested. Look very carefully for typos, missing or misplaced semicolons, brackets, etc, etc immediately before the first reported error. "I can use them sepeartely. but the problem comes when i use them togther" Have you missed, misplaced, or duplicated a header file?