{"action":"created","issue":{"url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/459","repository_url":"https://api.github.com/repos/sudar/Arduino-Makefile","labels_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/459/comments","events_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/459/events","html_url":"https://github.com/sudar/Arduino-Makefile/issues/459","id":178534978,"number":459,"title":"Undefined reference to __cxa_guard_acquire and __cxa_guard_release","user":{"login":"jonblack","id":175080,"avatar_url":"https://avatars.githubusercontent.com/u/175080?v=3","gravatar_id":"","url":"https://api.github.com/users/jonblack","html_url":"https://github.com/jonblack","followers_url":"https://api.github.com/users/jonblack/followers","following_url":"https://api.github.com/users/jonblack/following{/other_user}","gists_url":"https://api.github.com/users/jonblack/gists{/gist_id}","starred_url":"https://api.github.com/users/jonblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonblack/subscriptions","organizations_url":"https://api.github.com/users/jonblack/orgs","repos_url":"https://api.github.com/users/jonblack/repos","events_url":"https://api.github.com/users/jonblack/events{/privacy}","received_events_url":"https://api.github.com/users/jonblack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T06:47:39Z","updated_at":"2016-09-22T07:37:35Z","closed_at":null,"body":"Using the JsonArduino library with Arduino-Makefile, I get the following error during the linker phase when building one of the libraries examples:\r\n\r\n```\r\nbuild-mega-atmega2560/example.ino.o: In function `ArduinoJson::JsonArray::invalid()':\r\nexample.ino:(.text._ZN11ArduinoJson9JsonArray7invalidEv[ArduinoJson::JsonArray::invalid()]+0xc): undefined reference to `__cxa_guard_acquire'\r\nexample.ino:(.text._ZN11ArduinoJson9JsonArray7invalidEv[ArduinoJson::JsonArray::invalid()]+0x28): undefined reference to `__cxa_guard_release'\r\nbuild-mega-atmega2560/example.ino.o: In function `ArduinoJson::JsonObject::invalid()':\r\nexample.ino:(.text._ZN11ArduinoJson10JsonObject7invalidEv[ArduinoJson::JsonObject::invalid()]+0xc): undefined reference to `__cxa_guard_acquire'\r\nexample.ino:(.text._ZN11ArduinoJson10JsonObject7invalidEv[ArduinoJson::JsonObject::invalid()]+0x28): undefined reference to `__cxa_guard_release'\r\ncollect2: error: ld returned 1 exit status\r\n/home/jon/.arduino_mk/Arduino.mk:1416: recipe for target 'build-mega-atmega2560/arduino-example.elf' failed\r\nmake: *** [build-mega-atmega2560/arduino-example.elf] Error 1\r\n```\r\n\r\nUsing the arduino ide I don't get this problem. I first raised the issue with ArduinoJson here: https://github.com/bblanchon/ArduinoJson/issues/356."},"comment":{"url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/comments/248833114","html_url":"https://github.com/sudar/Arduino-Makefile/issues/459#issuecomment-248833114","issue_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/459","id":248833114,"user":{"login":"sej7278","id":817564,"avatar_url":"https://avatars.githubusercontent.com/u/817564?v=3","gravatar_id":"","url":"https://api.github.com/users/sej7278","html_url":"https://github.com/sej7278","followers_url":"https://api.github.com/users/sej7278/followers","following_url":"https://api.github.com/users/sej7278/following{/other_user}","gists_url":"https://api.github.com/users/sej7278/gists{/gist_id}","starred_url":"https://api.github.com/users/sej7278/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sej7278/subscriptions","organizations_url":"https://api.github.com/users/sej7278/orgs","repos_url":"https://api.github.com/users/sej7278/repos","events_url":"https://api.github.com/users/sej7278/events{/privacy}","received_events_url":"https://api.github.com/users/sej7278/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T07:37:35Z","updated_at":"2016-09-22T07:37:35Z","body":"works fine for me with 1.0.5 and 1.6.11 with these simple Makefiles\r\n\r\n```make\r\nARDUINO_DIR = $(HOME)/arduino-1.6.11\r\nBOARD_TAG = mega\r\nBOARD_SUB = atmega2560\r\nMONITOR_PORT = /dev/ttyACM0\r\ninclude /usr/share/arduino/Arduino.mk\r\n```\r\n\r\n```\r\nBOARD_TAG = mega2560\r\nMONITOR_PORT = /dev/ttyACM0\r\ninclude /usr/share/arduino/Arduino.mk\r\n```\r\n\r\nneed more info from you - your Makefile, platform, Arduino.mk Configuration output etc."}}
{"actor":{"display_login":"sej7278"}}