{"action":"created","issue":{"url":"https://api.github.com/repos/platformio/platformio/issues/724","repository_url":"https://api.github.com/repos/platformio/platformio","labels_url":"https://api.github.com/repos/platformio/platformio/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio/issues/724/comments","events_url":"https://api.github.com/repos/platformio/platformio/issues/724/events","html_url":"https://github.com/platformio/platformio/issues/724","id":165991348,"number":724,"title":"Linter-gcc errors using generated .gcc-flags.json using pio init --ide atom","user":{"login":"gargamel007","id":1975648,"avatar_url":"https://avatars.githubusercontent.com/u/1975648?v=3","gravatar_id":"","url":"https://api.github.com/users/gargamel007","html_url":"https://github.com/gargamel007","followers_url":"https://api.github.com/users/gargamel007/followers","following_url":"https://api.github.com/users/gargamel007/following{/other_user}","gists_url":"https://api.github.com/users/gargamel007/gists{/gist_id}","starred_url":"https://api.github.com/users/gargamel007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gargamel007/subscriptions","organizations_url":"https://api.github.com/users/gargamel007/orgs","repos_url":"https://api.github.com/users/gargamel007/repos","events_url":"https://api.github.com/users/gargamel007/events{/privacy}","received_events_url":"https://api.github.com/users/gargamel007/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/platformio/platformio/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-17T19:23:13Z","updated_at":"2016-07-17T20:35:57Z","closed_at":"2016-07-17T19:29:02Z","body":"Hi there ! \r\n\r\n### Configuration\r\n**Operating system**: Linux Mint\r\n**PlatformIO Version** (`platformio --version`): PlatformIO, version 2.11.1\r\n\r\n### Description of problem\r\nI'm using command line platformio version and a custom Atom IDE with linter-gcc installed.\r\nIt seems there is a bug in the generated .gcc-flags.json that I generated using pio init --ide atom.\r\nAs a result, as soon as I import <ESP8266WiFi.h> in my .h file, I'm getting lots of gcc errors like this : \r\n`GCC error 'shared_ptr' in namespace 'std' does not name a typeat line 41 col 9 in ~/.platformio/packages/framework-arduinoespressif/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.h`\r\n`GCC error 'WiFiEventHandler' does not name a typeat line 57 col 9 in ~/.platformio/packages/framework-arduinoespressif/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.h`\r\n\r\nThe project compiles fine using `pio run`\r\nThe linter errors do not appear on if I do the same import directly in .cpp files.\r\n\r\nSo in my .gcc-flags.json, I tried changing \r\n\"gccDefaultCFlags\": \"-fsyntax-only -std=**gnu99** -Wpo...\r\nto \r\n\"gccDefaultCFlags\": \"-fsyntax-only -std=**c++11** -Wpo...\r\n\r\nIt now matches gccDefaultCppFlags and fixes all the errors I had before on the linter !\r\n\r\nIs this the right way to fix this ? \r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/platformio/platformio/issues/comments/233202525","html_url":"https://github.com/platformio/platformio/issues/724#issuecomment-233202525","issue_url":"https://api.github.com/repos/platformio/platformio/issues/724","id":233202525,"user":{"login":"gargamel007","id":1975648,"avatar_url":"https://avatars.githubusercontent.com/u/1975648?v=3","gravatar_id":"","url":"https://api.github.com/users/gargamel007","html_url":"https://github.com/gargamel007","followers_url":"https://api.github.com/users/gargamel007/followers","following_url":"https://api.github.com/users/gargamel007/following{/other_user}","gists_url":"https://api.github.com/users/gargamel007/gists{/gist_id}","starred_url":"https://api.github.com/users/gargamel007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gargamel007/subscriptions","organizations_url":"https://api.github.com/users/gargamel007/orgs","repos_url":"https://api.github.com/users/gargamel007/repos","events_url":"https://api.github.com/users/gargamel007/events{/privacy}","received_events_url":"https://api.github.com/users/gargamel007/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T20:35:57Z","updated_at":"2016-07-17T20:35:57Z","body":"OK thanks. So if I use .h files in PIO IDE, it will not fix my issue and the linter will behave differently than the build system. \r\n\r\nI'll use .hpp files for now :)\r\n"}}
{"actor":{"display_login":"gargamel007"}}