Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Limitations": build for streams #9

Open
charelstoncrabb opened this issue Aug 19, 2023 · 0 comments
Open

"Limitations": build for streams #9

charelstoncrabb opened this issue Aug 19, 2023 · 0 comments

Comments

@charelstoncrabb
Copy link

Streams are listed under "Limitations" in the wiki. Can you elaborate on "If you use any streams, you'll need to compile library files beyond the headers."? I would very much like to use stringstreams, which appear to be defined in the headers but not built or linked to in the packaged arduino build (ie will compile if a statement like std::stringstream(str) is included, but throws linker errors if the stream is used)

E.g.,

[many more lines...]
...
/tmp/ccnalTw5.ltrans0.ltrans.o: In function `__base_ctor ':
/home/me/Arduino/libraries/stlport/stl/_ios.c:92: undefined reference to `std::ios_base::ios_base()'
/tmp/ccnalTw5.ltrans0.ltrans.o: In function `__base_ctor ':
/home/me/Arduino/libraries/stlport/stl/_streambuf.c:34: undefined reference to `std::locale::locale()'
/tmp/ccnalTw5.ltrans0.ltrans.o: In function `setup':
/home/me/Arduino/gmns_test/gmns_test.ino:478: undefined reference to `ss(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/home/me/Arduino/gmns_test/gmns_test.ino:478: undefined reference to `ss(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant