Unresolved inclusion error in Bada

212 Views Asked by At

I'm developing and app for Bada OS and i need use vectors and other standar structures from stl. But when i write:

#include <vector>

The Bada sdk throws me an error:

unresolved inclusion: vector

I'm looking for a solution on Internet and the solution always is include the stl's path on the configuration of the project (Bada IDE are derivated from Eclipse).

But i don't know where is that path, i tried to include all the path that i found (in minGW, bada directory, etc) and the compiler doesn't run if i include it.

Please help me! (sorry about my poor english)

3

There are 3 best solutions below

5
Pete Becker On

<vector> is part of the C++ standard library. If you can get to other headers from the standard library, then you don't need to mess with the path.

Some embedded compilers might not do templates, so <vector> wouldn't be part of their library. If that's the case, you're out of luck.

0
Seva Alekseyev On

If the compiler throwing you the error, or Eclipse? In my bada experience, standard C++ headers (STL and such) are marked by Eclipse as unresolved, but the compiler finds them all right.

This is not a compilation error - this is an IDE error. Ignore it and continue working. STL is supported on bada.

Bada SDK 2.0.5, targeting bada 2.0 (both HVGA and WVGA).

0
UnSaid On

even if it says this, it compiles fine, Eclipse gives me the same remark when including to use the c++ string, but it compiles fine

Best regards