{"action":"created","issue":{"url":"https://api.github.com/repos/queezythegreat/arduino-cmake/issues/176","repository_url":"https://api.github.com/repos/queezythegreat/arduino-cmake","labels_url":"https://api.github.com/repos/queezythegreat/arduino-cmake/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/queezythegreat/arduino-cmake/issues/176/comments","events_url":"https://api.github.com/repos/queezythegreat/arduino-cmake/issues/176/events","html_url":"https://github.com/queezythegreat/arduino-cmake/issues/176","id":242725666,"number":176,"title":"<iostream> not found when compiling project","user":{"login":"anna-seppala","id":15628320,"avatar_url":"https://avatars3.githubusercontent.com/u/15628320?v=4","gravatar_id":"","url":"https://api.github.com/users/anna-seppala","html_url":"https://github.com/anna-seppala","followers_url":"https://api.github.com/users/anna-seppala/followers","following_url":"https://api.github.com/users/anna-seppala/following{/other_user}","gists_url":"https://api.github.com/users/anna-seppala/gists{/gist_id}","starred_url":"https://api.github.com/users/anna-seppala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anna-seppala/subscriptions","organizations_url":"https://api.github.com/users/anna-seppala/orgs","repos_url":"https://api.github.com/users/anna-seppala/repos","events_url":"https://api.github.com/users/anna-seppala/events{/privacy}","received_events_url":"https://api.github.com/users/anna-seppala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-13T14:45:01Z","updated_at":"2017-09-21T14:35:47Z","closed_at":null,"author_association":"NONE","body":"Hello all,\r\nI recently stumbled upon this project when looking for ways to use cmake with Arduino. I am reusing the examples within the project, and wanted to expand blink.cpp by using <iostream>. Only adding the include into blink.cpp makes the compilation fail. cmake is unable to find the library and terminates compilation. I fail to understand why. Could anyone enlighten me?"},"comment":{"url":"https://api.github.com/repos/queezythegreat/arduino-cmake/issues/comments/331176100","html_url":"https://github.com/queezythegreat/arduino-cmake/issues/176#issuecomment-331176100","issue_url":"https://api.github.com/repos/queezythegreat/arduino-cmake/issues/176","id":331176100,"user":{"login":"JonasProgrammer","id":4278464,"avatar_url":"https://avatars2.githubusercontent.com/u/4278464?v=4","gravatar_id":"","url":"https://api.github.com/users/JonasProgrammer","html_url":"https://github.com/JonasProgrammer","followers_url":"https://api.github.com/users/JonasProgrammer/followers","following_url":"https://api.github.com/users/JonasProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/JonasProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/JonasProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonasProgrammer/subscriptions","organizations_url":"https://api.github.com/users/JonasProgrammer/orgs","repos_url":"https://api.github.com/users/JonasProgrammer/repos","events_url":"https://api.github.com/users/JonasProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/JonasProgrammer/received_events","type":"User","site_admin":false},"created_at":"2017-09-21T14:35:47Z","updated_at":"2017-09-21T14:35:47Z","author_association":"NONE","body":"Hello Anna,\r\nyou seem to misunderstand what Arduino CMake actually is and what it isn't. Let me explain: Arduino CMake is just a build system to give you more freedom in structure and options especially for bigger projects. But it still uses the very same compiler and libraries Arduino itself provides (avr-gcc and the default Arduino libraries).\r\nSo while you can compile and link additional libraries with CMake, it still does not provide fully-fledged C++ standard library (which iostream belongs to*).\r\n\r\nTo answer your question, if you want to interact with a user, you could just use the Serial library and connect to the virtual serial terminal on PC. Please do note however, that this is by far simpler than the C++ stream libraries.\r\n\r\nAlthough it's been 2 months, I hope I still could help a little.\r\n\r\n* This is oversimplified. The C++ standard defines freestanding and hosted environments (neither of which Arduino fully provides) and the stream libraries belong to the latter, thus you shouldn't expect them to be available in most lowlevel compiler toolchains."}}
{"actor":{"display_login":"JonasProgrammer"}}