Book a Demo

Author Topic: Import C++ Error Messages  (Read 4035 times)

BrianGreene

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Import C++ Error Messages
« on: November 01, 2012, 03:55:15 am »
I am currently trying to import some legacy C++ code

I get many messages like:
Quote
There was an error parsing C:\Data\projects\actuv\autonomy\autonomy-trim\utils\Base.h  on line 56.  Unexpected symbol: Base      
You may need to define a language macro.      

where the code looks like:
Code: [Select]
#include <utils/Managed.h>
#include <utils/Type.h>
#include <utils/String.h>

__UTILS_BEGIN_NAMESPACE

class Base : public Managed
yet I have other code that imports fine that looks like:
Code: [Select]
#include "Boat.h"

//! Initial, basic boat model implementation
class BoatModelOne : public Boat
Can anyone help me figure out what I need to do to get the rest of the code to import?

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Import C++ Error Messages
« Reply #1 on: November 01, 2012, 04:46:44 am »
Looks like you need to define a language macro for
Code: [Select]
__UTILS_BEGIN_NAMESPACE as suggested in the error message. See 'Settings->Preprocessor Macros...'

HTH
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/