Book a Demo

Author Topic: C++ and include files  (Read 2966 times)

cable000

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
C++ and include files
« on: January 09, 2009, 10:05:57 am »

I have a class like this -

class A
{
  std::string name;
}

I have added a package to my model that contains the std::string class.

If I go to generate C++ code with this it will add this as #include "string.h". I would like for it to use the angle-bracket form since this is a standard library (STL) so instead it would generate #include <string>. Is their a way to do this in EA?

Thanks!

O.Kania

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: C++ and include files
« Reply #1 on: January 12, 2009, 10:00:54 pm »
Since you have added your own package with "class string", EA assumes u want to use a self defined string class in the same directory
and inserts "string.h"
Remove the package and EA will not insert anything.
I do not know how to make EA insert <string>
I assume its not possible

Best regards, Oliver