{"action":"created","issue":{"url":"https://api.github.com/repos/vdudouyt/stm8flash/issues/15","labels_url":"https://api.github.com/repos/vdudouyt/stm8flash/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/vdudouyt/stm8flash/issues/15/comments","events_url":"https://api.github.com/repos/vdudouyt/stm8flash/issues/15/events","html_url":"https://github.com/vdudouyt/stm8flash/issues/15","id":69370025,"number":15,"title":"cannot compile under MacOS X","user":{"login":"gicking","id":10261226,"avatar_url":"https://avatars.githubusercontent.com/u/10261226?v=3","gravatar_id":"","url":"https://api.github.com/users/gicking","html_url":"https://github.com/gicking","followers_url":"https://api.github.com/users/gicking/followers","following_url":"https://api.github.com/users/gicking/following{/other_user}","gists_url":"https://api.github.com/users/gicking/gists{/gist_id}","starred_url":"https://api.github.com/users/gicking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gicking/subscriptions","organizations_url":"https://api.github.com/users/gicking/orgs","repos_url":"https://api.github.com/users/gicking/repos","events_url":"https://api.github.com/users/gicking/events{/privacy}","received_events_url":"https://api.github.com/users/gicking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-19T01:43:38Z","updated_at":"2015-04-20T11:11:48Z","closed_at":null,"body":"hi Valentin,\r\n\r\nI would very much like to use your stm8flash tool under MacOS X 10.10.3. However, I ran into a problem for which I need your help. Here's my steps with observations:\r\n\r\n* installed pkg-config and libusb --> worked\r\n\r\n* compile of stlink.c gave \r\n\r\n    * many warning messages like (ignored):\r\n    *stlink.c:37:71: warning: passing 'char [32]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]*\r\n    --> suppose this is not critical...? Disabled all warnings by *CFLAGS += -w* in Makefile \r\n\r\n    * many error messages like (fixed):\r\n    */usr/local/Cellar/libusb/1.0.19/include/libusb-1.0/libusb.h:1696:10: error: use of undeclared identifier 'NULL'*\r\n    --> fixed by *#include \\<stddef.h>* in stlink.c before *#include \\<libusb.h>*\r\n\r\n    * many error message like (open):\r\n    *stlink.c:340:12: error: use of undeclared identifier 'stderr'*\r\n    *fprintf(stderr, \"Unknown status: %x\\n\", status);*\r\n    In addition it warns that \r\n    *declaration of built-in function 'fprintf' requires inclusion of the header \\<stdio.h>*\r\n    --> it seems like the inclusion of *\\<stdio.h>* in line 4 of stlink.c has no effect...  :-(\r\n\r\n* to make sure my toolchain is ok, I compiled a dummy program with *fprintf(stderr,\"test\");* and it was ok\r\n\r\n--> I played around a lot but can't get that stdio.h point fixed :-(  Any idea what's going on here? For your help thanks a lot in advance!\r\n\r\nRegards, Georg"},"comment":{"url":"https://api.github.com/repos/vdudouyt/stm8flash/issues/comments/94425399","html_url":"https://github.com/vdudouyt/stm8flash/issues/15#issuecomment-94425399","issue_url":"https://api.github.com/repos/vdudouyt/stm8flash/issues/15","id":94425399,"user":{"login":"vdudouyt","id":1840936,"avatar_url":"https://avatars.githubusercontent.com/u/1840936?v=3","gravatar_id":"","url":"https://api.github.com/users/vdudouyt","html_url":"https://github.com/vdudouyt","followers_url":"https://api.github.com/users/vdudouyt/followers","following_url":"https://api.github.com/users/vdudouyt/following{/other_user}","gists_url":"https://api.github.com/users/vdudouyt/gists{/gist_id}","starred_url":"https://api.github.com/users/vdudouyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdudouyt/subscriptions","organizations_url":"https://api.github.com/users/vdudouyt/orgs","repos_url":"https://api.github.com/users/vdudouyt/repos","events_url":"https://api.github.com/users/vdudouyt/events{/privacy}","received_events_url":"https://api.github.com/users/vdudouyt/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T11:11:48Z","updated_at":"2015-04-20T11:11:48Z","body":"Hi Georg,\r\n\r\nThis should be fixed by  #fbfd745 (thanks to Philipp). Please confirm.\r\n\r\nBest Regards,\r\nValentin"}}