{"action":"created","issue":{"url":"https://api.github.com/repos/coolaj86/libev-examples/issues/5","labels_url":"https://api.github.com/repos/coolaj86/libev-examples/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/coolaj86/libev-examples/issues/5/comments","events_url":"https://api.github.com/repos/coolaj86/libev-examples/issues/5/events","html_url":"https://github.com/coolaj86/libev-examples/issues/5","id":53987378,"number":5,"title":"The order of LDFLAGS for gcc","user":{"login":"hmgle","id":1779916,"avatar_url":"https://avatars.githubusercontent.com/u/1779916?v=3","gravatar_id":"","url":"https://api.github.com/users/hmgle","html_url":"https://github.com/hmgle","followers_url":"https://api.github.com/users/hmgle/followers","following_url":"https://api.github.com/users/hmgle/following{/other_user}","gists_url":"https://api.github.com/users/hmgle/gists{/gist_id}","starred_url":"https://api.github.com/users/hmgle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmgle/subscriptions","organizations_url":"https://api.github.com/users/hmgle/orgs","repos_url":"https://api.github.com/users/hmgle/repos","events_url":"https://api.github.com/users/hmgle/events{/privacy}","received_events_url":"https://api.github.com/users/hmgle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-11T10:01:59Z","updated_at":"2015-04-28T03:20:27Z","closed_at":null,"body":"Some version of gcc will ignore the linked Libraries if the -l options before the object files:\r\n\r\n\t$ cc -Wall -Werror -lev -ggdb3 -I./include -o bin/unix-echo-server src/unix-echo-server.c obj/array-heap.o\r\n\tccVwfl0g.o: In function `ev_loop':\r\n\t/usr/include/ev.h:826: undefined reference to `ev_run'\r\n\r\nIt is OK after moving the `-lev` to the end of the command:\r\n\r\n\t$ cc -Wall -Werror -ggdb3 -I./include -o bin/unix-echo-server src/unix-echo-server.c obj/array-heap.o -lev\r\n"},"comment":{"url":"https://api.github.com/repos/coolaj86/libev-examples/issues/comments/96895238","html_url":"https://github.com/coolaj86/libev-examples/issues/5#issuecomment-96895238","issue_url":"https://api.github.com/repos/coolaj86/libev-examples/issues/5","id":96895238,"user":{"login":"zztczcx","id":526940,"avatar_url":"https://avatars.githubusercontent.com/u/526940?v=3","gravatar_id":"","url":"https://api.github.com/users/zztczcx","html_url":"https://github.com/zztczcx","followers_url":"https://api.github.com/users/zztczcx/followers","following_url":"https://api.github.com/users/zztczcx/following{/other_user}","gists_url":"https://api.github.com/users/zztczcx/gists{/gist_id}","starred_url":"https://api.github.com/users/zztczcx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zztczcx/subscriptions","organizations_url":"https://api.github.com/users/zztczcx/orgs","repos_url":"https://api.github.com/users/zztczcx/repos","events_url":"https://api.github.com/users/zztczcx/events{/privacy}","received_events_url":"https://api.github.com/users/zztczcx/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T03:20:27Z","updated_at":"2015-04-28T03:20:27Z","body":"I meet the same problem "}}