Hello,
I have OpenSees included in my application. Therefore I included the OpenSees header files. In one of them is a define which makes me problems:
#define vector BJvector
In my own application I want to use an std::vector<...>
but the compiler gives me this error:
error C2039: 'BJvector': Is not an element of 'std'
Do you have an idea how to solve this?
Thank you very much.
#define vector BJvector
Moderators: silvia, selimgunay, Moderators
-
- Posts: 15
- Joined: Mon Aug 06, 2007 3:37 am
- Location: Bauhaus University Weimar
- Contact:
-
- Posts: 15
- Joined: Mon Aug 06, 2007 3:37 am
- Location: Bauhaus University Weimar
- Contact:
ok, I figured out a solution: always include the OpenSees headers after all other includes, and only in cpp files. In header-files, just write the OpenSees class names instead of header file includes.
I'm not a very experienced developer, but I think it's dangerous overriding defines of std namspace (like #define vector BJvector).
I'm not a very experienced developer, but I think it's dangerous overriding defines of std namspace (like #define vector BJvector).