Ryan Mansfield(deleted)
|
Re: incompatabilities found with GNU gcc STL code
|
Ryan Mansfield(deleted)
10/25/2011 4:49 PM
post89615
|
Re: incompatabilities found with GNU gcc STL code
On 11-10-25 04:37 PM, Peter Snider wrote:
> 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.
Can you post an example?
Regards,
Ryan Mansfield
|
|
|