This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EC++ and RTX tiny problem

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

Parents
  • "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?

Reply
  • "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?

Children
No data