Jump to ID:
Core Development Tools

Project Home

Documents

Source Code

Discussions

Wiki

Project Info
Forum Topic - incompatabilities found with GNU gcc STL code: Page 1 of 4 (4 Items)
   
 
 
incompatabilities found with GNU gcc STL code  
I have some C++ code that uses STL heavily, and it compiles correctly on GNU gcc 4.2, 4.3, 4.4, and 4.5 on Ubuntu linux.
 It also compiles correctly on Microsoft MSVC 2008.

However, I cannot get it to compile using the 4.8.0 Momentics Tools (build # 201105051724).

I haven't figured out how to select the STL library to use.
My best guess so far is:
from Project Properties-->C/C++ Build-->Settings:
choose the Tool Settings tab, and select Target:
then choose the Runtime from the combo box.
I have tried both C++ GNU with exceptions, and C++ Dinkum with exceptions,
but I still get errors regarding my iterators.

The errors are mostly one of:
error: no type named 'iterator_category' in class <such and such>
error: no type named 'value_type' in class <such and such>
error: no type named 'difference_type' in class <such and such>
error: no type named 'pointer' in class <such and such>
error: no type named 'reference' in class <such and such>

Since Momentics is built on gcc, and I can compile this code under linux using the above listed versions, I believe my 
code is fine, and there must be some configuration item I can change to get my code to build.

I welcome any suggestions.
Thanks