{"action":"created","issue":{"url":"https://api.github.com/repos/lbt/captouch/issues/1","repository_url":"https://api.github.com/repos/lbt/captouch","labels_url":"https://api.github.com/repos/lbt/captouch/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lbt/captouch/issues/1/comments","events_url":"https://api.github.com/repos/lbt/captouch/issues/1/events","html_url":"https://github.com/lbt/captouch/issues/1","id":49810034,"number":1,"title":"will not compile","user":{"login":"whyameye","id":1716966,"avatar_url":"https://avatars.githubusercontent.com/u/1716966?v=3","gravatar_id":"","url":"https://api.github.com/users/whyameye","html_url":"https://github.com/whyameye","followers_url":"https://api.github.com/users/whyameye/followers","following_url":"https://api.github.com/users/whyameye/following{/other_user}","gists_url":"https://api.github.com/users/whyameye/gists{/gist_id}","starred_url":"https://api.github.com/users/whyameye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyameye/subscriptions","organizations_url":"https://api.github.com/users/whyameye/orgs","repos_url":"https://api.github.com/users/whyameye/repos","events_url":"https://api.github.com/users/whyameye/events{/privacy}","received_events_url":"https://api.github.com/users/whyameye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2014-11-23T00:48:38Z","updated_at":"2016-07-21T19:34:11Z","closed_at":null,"body":"Adding library and using test code produces this result in Spark web ide:\r\nIn file included from ../inc/spark_wiring.h:29:0,\r\nfrom ../inc/application.h:29,\r\nfrom captouch/captouch.cpp:22:\r\n../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning \"Defaulting to Release Build\" [-Wcpp]\r\n#warning \"Defaulting to Release Build\"\r\n^\r\nIn file included from ../inc/spark_wiring.h:29:0,\r\nfrom ../inc/application.h:29,\r\nfrom captouch1.cpp:2:\r\n../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning \"Defaulting to Release Build\" [-Wcpp]\r\n#warning \"Defaulting to Release Build\"\r\n^\r\ncaptouch1.cpp:10:7: error: ISO C++ forbids declaration of 'setup' with no type [-fpermissive]\r\n// and *must* be D0, D1, D2, D3, D4 A0, A1, A3, A4, A5, A6, A7\r\n^\r\ncaptouch1.cpp: In function 'int setup()':\r\ncaptouch1.cpp:10:7: error: new declaration 'int setup()'\r\nIn file included from ../inc/spark_wiring.h:33:0,\r\nfrom ../inc/application.h:29,\r\nfrom captouch1.cpp:2:\r\n../inc/spark_utilities.h:169:6: error: ambiguates old declaration 'void setup()'\r\nvoid setup() __attribute__ ((weak));\r\n^\r\ncaptouch1.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]\r\nCapTouch Touch(D4, D5);\r\n^\r\ncaptouch1.cpp: At global scope:\r\ncaptouch1.cpp:14:6: error: ISO C++ forbids declaration of 'loop' with no type [-fpermissive]\r\nsetup() {\r\n^\r\ncaptouch1.cpp: In function 'int loop()':\r\ncaptouch1.cpp:14:6: error: new declaration 'int loop()'\r\nIn file included from ../inc/spark_wiring.h:33:0,\r\nfrom ../inc/application.h:29,\r\nfrom captouch1.cpp:2:\r\n../inc/spark_utilities.h:170:6: error: ambiguates old declaration 'void loop()'\r\nvoid loop() __attribute__ ((weak));\r\n^\r\ncaptouch1.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]\r\ndigitalWrite(D7, LOW); // LED off\r\n^\r\nmake: *** [captouch1.o] Error 1\r\n\r\nError: Could not compile. Please review your code."},"comment":{"url":"https://api.github.com/repos/lbt/captouch/issues/comments/234359581","html_url":"https://github.com/lbt/captouch/issues/1#issuecomment-234359581","issue_url":"https://api.github.com/repos/lbt/captouch/issues/1","id":234359581,"user":{"login":"Here-Be-Dragons","id":16006239,"avatar_url":"https://avatars.githubusercontent.com/u/16006239?v=3","gravatar_id":"","url":"https://api.github.com/users/Here-Be-Dragons","html_url":"https://github.com/Here-Be-Dragons","followers_url":"https://api.github.com/users/Here-Be-Dragons/followers","following_url":"https://api.github.com/users/Here-Be-Dragons/following{/other_user}","gists_url":"https://api.github.com/users/Here-Be-Dragons/gists{/gist_id}","starred_url":"https://api.github.com/users/Here-Be-Dragons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Here-Be-Dragons/subscriptions","organizations_url":"https://api.github.com/users/Here-Be-Dragons/orgs","repos_url":"https://api.github.com/users/Here-Be-Dragons/repos","events_url":"https://api.github.com/users/Here-Be-Dragons/events{/privacy}","received_events_url":"https://api.github.com/users/Here-Be-Dragons/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T19:34:11Z","updated_at":"2016-07-21T19:34:11Z","body":"The example code was missing declarations.  I have put through a pull request to @lbt that incorporates these fixes."}}
{"actor":{"display_login":"Here-Be-Dragons"}}