Book a Demo

Author Topic: Problem with c++ import from source  (Read 3277 times)

dellegi

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Problem with c++ import from source
« on: December 06, 2006, 01:54:07 am »
Hi all,
I'm a EA newbie. I'm trying to import some old classes definition from old sources. The import process aborts each time the parser encouters such a kind of declaration

Standard_EXPORT static const Standard_GUID & GetID() ;

Here is the error:
There was an error parsing C:\Progetti\MasterWork2\Prototipi\Element\qtsample\BoxOP.h on line 14.  Unexpected symbol: &

Any idea?

Thanks

TomPre

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Problem with c++ import from source
« Reply #1 on: December 06, 2006, 07:14:47 am »
EA seems to have problems with the reference &. Try to do it with the pointer *. I know this means some work,but thats the only way I can think of, besides I'm also a newbie.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problem with c++ import from source
« Reply #2 on: December 06, 2006, 12:59:28 pm »
Try defining Standard_EXPORT as a language macro.  See http://sparxsystems.com.au/EAUserGuide/index.html?languagemacros.htm for an explanation.