Book a Demo

Author Topic: extern struct tagFoo not parsed properly  (Read 9089 times)

renacer

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
extern struct tagFoo not parsed properly
« on: February 24, 2008, 12:15:21 pm »
If I import C++ with the following construct

extern struct tagFoo
{
   //data members here
}g_SS;

I get the following error on import:

There was an error parsing file.h on line 2.  Unexpected symbol: {      

taking away the leading extern seems to fix this, though the syntax is valid C++ and compiles fine (assuming I actually declare g_SS externally).

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: extern struct tagFoo not parsed properly
« Reply #1 on: February 25, 2008, 09:02:10 am »
I can confirm that the parser is not expecting the extern to actually contain the definition.  Please send in a bug report if you haven't already.