1 / 4

ObjectSpace C++<ToolKit> issues

ObjectSpace C++<ToolKit> issues. How to combine together: ObjectSpace C++ <ToolKit> Objectivity Persistent STL Compiler native STD Solution: Compile ObjectSpace C++ <ToolKit> with native STD OS_USE_ALTERNATE_STD flag Make independent Persistent STL package change flag names

dinah
Download Presentation

ObjectSpace C++<ToolKit> issues

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ObjectSpace C++<ToolKit> issues • How to combine together: • ObjectSpace C++ <ToolKit> • Objectivity Persistent STL • Compiler native STD • Solution: • Compile ObjectSpace C++ <ToolKit> with native STD OS_USE_ALTERNATE_STD flag • Make independent Persistent STL package • change flag names • change symbol names

  2. Changing PSTL symbol names • Namespace • easy to implement • ooddlx produces code that does not compile: • class namespace::classname; • Alternative names • lots of code modifications • works • all global symbol names start with ‘os_’ prefix • class names • function names

  3. PSTL Placement • In Objectivity directory? -I${OBJY_DIR} #include <pstl/vector> #include <pstl/d_vector>

  4. Using ObjectSpace C++<ToolKit> • Including transient STD vector class header #include <ospace/std/vector> • Including persistent d_vector class header #include <ospace/stl/d_vector.h> • Compiler flags -I${OBJY_DIR}/ToolKit -I${TOOLKIT} • Do not use #include <vector> -I${TOOLKIT}/ospace/std

More Related