Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: CiriousJoker on February 03, 2015, 06:52:22 pm
-
Hey guys,
sorry to ask you again for something, but this time its that i dont know how to use strings.
Normally strings work like this:
#include <string>
using namespace std;
int main()
{
string foo = "bar";
}
But this doesnt work, because i cant include the string library ...
Is there anything i forgot to download?
Do i really have to use c-strings?
Or am i just too dumb for this?
ps.: Am i posting in the right forum? I havent found a subforum for such questions ...
-
What's the error? It works fine for me. Do you have the latest SDK?
-
http://gyazo.com/5e8423c75e1d2f1d54392933bb9dc774
http://gyazo.com/b156d289190cd5ce1658f1a78d07e4f9
Thats the error. Seems like it cant find something like string_basic.tcc
Can i manually download this anywhere?
Can you attach it if you find it in your directory?
-
Are you running linux? If so, do you have linux-headers installed?
-
Nope im using windows ...
But i have Linux dualboot if that helps me
-
googling for bits/basic_string.tcc
First result:
https://gcc.gnu.org/onlinedocs/gcc-4.6.3/libstdc++/api/a00771_source.html
Seems like you need to install libstdc++
-
libstdc++ is already installed, but gcc 4.6.3 is just way to old. AFAIK the toolchain you're using is outdated, there should be a more recent one somewhere, although I strongly advise to use linux (ndless-sdk from docker or self-compiled) or cygwin. Both ways are tested and work just fine, with the latest GCC 4.9.2.
-
Thanks!
Sorry if that seems like i was too lazy to google, but i thought this problem is directly related to the ndless sdk
Fixed it now, if anyone else has the same problem, here it is.
I saved it here
NdlessSDK\yagarto\arm-none-eabi\include\c++\4.6.2\arm-none-eabi\bits
and it worked.
EDIT:
hmm ye i'll update it soon, i just thought i already have the newest version.