{"action":"created","issue":{"url":"https://api.github.com/repos/alvaroabascar/cneuron/issues/2","labels_url":"https://api.github.com/repos/alvaroabascar/cneuron/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/alvaroabascar/cneuron/issues/2/comments","events_url":"https://api.github.com/repos/alvaroabascar/cneuron/issues/2/events","html_url":"https://github.com/alvaroabascar/cneuron/issues/2","id":67846305,"number":2,"title":"Some warnings when compiling in C99","user":{"login":"merqurio","id":1485056,"avatar_url":"https://avatars.githubusercontent.com/u/1485056?v=3","gravatar_id":"","url":"https://api.github.com/users/merqurio","html_url":"https://github.com/merqurio","followers_url":"https://api.github.com/users/merqurio/followers","following_url":"https://api.github.com/users/merqurio/following{/other_user}","gists_url":"https://api.github.com/users/merqurio/gists{/gist_id}","starred_url":"https://api.github.com/users/merqurio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merqurio/subscriptions","organizations_url":"https://api.github.com/users/merqurio/orgs","repos_url":"https://api.github.com/users/merqurio/repos","events_url":"https://api.github.com/users/merqurio/events{/privacy}","received_events_url":"https://api.github.com/users/merqurio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-11T23:40:31Z","updated_at":"2015-04-12T09:49:47Z","closed_at":null,"body":"I tried to run it, and I think it didn't work, It drops everytime at `Epoch 4: 0 / 10000 (0.00%)`\r\n\r\n```bash\r\ngcc    -c -o neuron.o neuron.c\r\nneuron.c:395:17: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]\r\n                write(fp, &(net->weights[l][n1][n2]), sizeof(float));\r\n                ^\r\nneuron.c:414:17: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]\r\n                read(fp, &(net->weights[l][n1][n2]), sizeof(float));\r\n                ^\r\n2 warnings generated.\r\ngcc    -c -o matrix.o matrix.c\r\ngcc     nums_test.c neuron.o matrix.o  -lm -o nums_test\r\nnums_test.c:36:5: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]\r\n    lseek(train_lab, 8, SEEK_SET);\r\n    ^\r\nnums_test.c:39:9: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]\r\n        read(train_lab, &dum, 1);\r\n        ^\r\nnums_test.c:72:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]\r\n    static maxhits = 0;\r\n    ~~~~~~ ^\r\n3 warnings generated.\r\ngcc     save_test.c neuron.o matrix.o  -lm -o save_test\r\nsave_test.c:12:5: warning: implicit declaration of function 'vprint_float' is invalid in C99 [-Wimplicit-function-declaration]\r\n    vprint_float(1, output);\r\n    ^\r\nsave_test.c:15:5: warning: implicit declaration of function 'srand' is invalid in C99 [-Wimplicit-function-declaration]\r\n    srand(time(NULL));\r\n    ^\r\nsave_test.c:15:11: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]\r\n    srand(time(NULL));\r\n          ^\r\n3 warnings generated.\r\n```\r\n\r\n:smile: "},"comment":{"url":"https://api.github.com/repos/alvaroabascar/cneuron/issues/comments/92025306","html_url":"https://github.com/alvaroabascar/cneuron/issues/2#issuecomment-92025306","issue_url":"https://api.github.com/repos/alvaroabascar/cneuron/issues/2","id":92025306,"user":{"login":"alvaroabascar","id":7307772,"avatar_url":"https://avatars.githubusercontent.com/u/7307772?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaroabascar","html_url":"https://github.com/alvaroabascar","followers_url":"https://api.github.com/users/alvaroabascar/followers","following_url":"https://api.github.com/users/alvaroabascar/following{/other_user}","gists_url":"https://api.github.com/users/alvaroabascar/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaroabascar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaroabascar/subscriptions","organizations_url":"https://api.github.com/users/alvaroabascar/orgs","repos_url":"https://api.github.com/users/alvaroabascar/repos","events_url":"https://api.github.com/users/alvaroabascar/events{/privacy}","received_events_url":"https://api.github.com/users/alvaroabascar/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T09:49:47Z","updated_at":"2015-04-12T09:49:47Z","body":"btw I cannot reproduce the warnings."}}