Hi All,
shared_ptr has been around since the TR1 days. When I try and use it,
I get the following: "error: 'std::shared_ptr' has not been declared"
On Sun, Jul 21, 2013 at 3:35 AM, Reece Dunn <msc...@googlemail.com> wrote:
> On Sunday, 21 July 2013 05:02:12 UTC+1, Jeffrey Walton wrote:
>>
>> shared_ptr has been around since the TR1 days. When I try and use it,Interesting. I also failed with TR1:
>> I get the following: "error: 'std::shared_ptr' has not been declared"
>
> The NDK version of STLport does not declare std::shared_ptr. It provides a
> version of std::tr1::shared_ptr, which is what you have noticed in the code.
So I'm clear: I need to include Boost? (it does not appear to be in sysroot):
I prefer to avoid Boost because of the problems on some platforms
(some of the older Unix/Linux distros have problems, and its near
useless on Windows because of the way it configures itself (it
hardstops with a #pragma error)).
Also, I don't want to migrate to C++11 because it might cause
hardships with older platforms (the project is a few years old, and I
can't guarantee everyone has a C++11 compiler, or the C++11 compiler
works). I feel comfortable with TR1 since its been around for a decade
or so.
Would you happen to know if I will have the same problems with the
other STL library included in the NDK?
Anyway, I don't want to come off as argumentative. Thanks again.
Sorry this is completely incorrect and dangerously so. Please read:
http://gcc.gnu.org/onlinedocs/libstdc++/faq.html
Or
http://gcc.gnu.org/onlinedocs/libstdc++/faq.html
.. in particular the bit " GCC RUNTIME LIBRARY EXCEPTION"
>>
>> Anyway, I don't want to come off as argumentative. Thanks again.
>
>
> I don't see your questions as argumentative.
>
> - Reece
>
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
> To post to this group, send email to andro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/android-ndk.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
III.2. GNU libstdc++ license is GPLv3 + linking exception!
----------------------------------------------------------
Be aware that the GNU libstdc++ is covered by the GPLv3 license (and *not*
the LGPLv2 or LGPLv3 as some assume), full details available here:
http://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
Be sure that you comply with all clauses of this license.
-----
Maybe it could be more clear if it's caused you to think closed source application development and gnu libstdc++ are incompatible.