Book a Demo

Author Topic: Problem while importing .h 'c' files to class package  (Read 10179 times)

Venkatrao R

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Problem while importing .h 'c' files to class package
« on: November 28, 2018, 04:48:07 pm »
Hi,

I'm facing a problem while importing header files to class package.

Getting an error "Parse error at line number <line number>.

Kindly suggest solution to this issue.

Thanks in advance.

Regards,
Venkatrao R

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Problem while importing .h 'c' files to class package
« Reply #1 on: November 28, 2018, 07:10:28 pm »
Hmm. I'd look what <line number> actually looks like.

q.

Venkatrao R

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Problem while importing .h 'c' files to class package
« Reply #2 on: November 29, 2018, 04:37:02 pm »
while importing, it is showing like,

There was an error parsing C:\Users\20156478\Desktop\Delete1\Test.h  on line 1.  Unexpected symbol: ;   


KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Problem while importing .h 'c' files to class package
« Reply #3 on: November 29, 2018, 04:56:54 pm »
while importing, it is showing like,

There was an error parsing C:\Users\20156478\Desktop\Delete1\Test.h  on line 1.  Unexpected symbol: ;

You aren't making it easy for us to help you. It would be nice to see the rest of line 1 but I'm guessing that there is an identifier/macro/symbol that EA's parser doesn't know about and you will have to add it to the list of symbols that EA needs to ignore.
« Last Edit: November 29, 2018, 05:00:11 pm by KP »
The Sparx Team
[email protected]

Venkatrao R

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Problem while importing .h 'c' files to class package
« Reply #4 on: November 29, 2018, 05:13:35 pm »
This is the function in line 1 I want to import from .h file
 
 
 FUNC(return_type, code_section) Function_name(pointer_to_variable(ptrtype, memclass, ptrclass) data);
 
 
 where
 
 #define FUNC(rettype, memclass) memclass rettype
 #define pointer_to_variable(ptrtype, memclass, ptrclass)  ptrtype ptrclass  * memclass
 
 for this i'm getting problem:
 
There was an error parsing C:\Users\20156478\Desktop\Delete1\Test.h  on line 1.  Unexpected symbol: ;