{"action":"created","issue":{"url":"https://api.github.com/repos/derekparker/delve/issues/670","repository_url":"https://api.github.com/repos/derekparker/delve","labels_url":"https://api.github.com/repos/derekparker/delve/issues/670/labels{/name}","comments_url":"https://api.github.com/repos/derekparker/delve/issues/670/comments","events_url":"https://api.github.com/repos/derekparker/delve/issues/670/events","html_url":"https://github.com/derekparker/delve/issues/670","id":189377494,"number":670,"title":"CANT COMPILE ","user":{"login":"MrLiet","id":23429917,"avatar_url":"https://avatars.githubusercontent.com/u/23429917?v=3","gravatar_id":"","url":"https://api.github.com/users/MrLiet","html_url":"https://github.com/MrLiet","followers_url":"https://api.github.com/users/MrLiet/followers","following_url":"https://api.github.com/users/MrLiet/following{/other_user}","gists_url":"https://api.github.com/users/MrLiet/gists{/gist_id}","starred_url":"https://api.github.com/users/MrLiet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrLiet/subscriptions","organizations_url":"https://api.github.com/users/MrLiet/orgs","repos_url":"https://api.github.com/users/MrLiet/repos","events_url":"https://api.github.com/users/MrLiet/events{/privacy}","received_events_url":"https://api.github.com/users/MrLiet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-15T12:20:32Z","updated_at":"2016-11-16T08:13:18Z","closed_at":"2016-11-15T15:56:02Z","body":"Hello.\r\n\r\nI have compile error:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/23429917/20272702/4ff18ac6-aac1-11e6-9e7b-215ac472d93c.png)\r\n\r\n\r\nSource code:\r\n\r\n```\r\npackage main\r\n\r\nimport \"github.com/go-gl/glfw/v3.2/glfw\"\r\nimport \"runtime\"\r\n\r\nfunc main() {\r\n\r\n\truntime.LockOSThread()\r\n\r\n\tglfw.Init()\r\n\r\n\tw, _ := glfw.CreateWindow(800, 600, \"hello\", nil, nil)\r\n\r\n\tfor {\r\n\t\tglfw.PollEvents()\r\n\t\tif w.ShouldClose() {\r\n\t\t\tbreak\r\n\t\t}\r\n\t}\r\n\r\n}\r\n```\r\n\r\nConsole output:\r\n\r\n> me/proj1\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): strdup: not defined\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): strdup: not defined\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): strdup: not defined\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): strdup: not defined\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): undefined: strdup\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): undefined: strdup\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): undefined: strdup\r\n> github.com/go-gl/glfw/v3.2/glfw(.text): undefined: strdup\r\n> exit status 2\r\n> \r\n\r\nIm use:\r\n\r\n- Windows 64 bit\r\n- Go 1.7.3 \r\n- Mingw 64\r\n- VS Code\r\n\r\nVS Code settings:\r\n```\r\n{\r\n    \"go.buildOnSave\": true,\r\n    \"go.lintOnSave\": true,\r\n    \"go.vetOnSave\": true,\r\n    \"go.buildTags\": \"\",\r\n    \"go.buildFlags\": [],\r\n    \"go.lintTool\": \"golint\",\r\n    \"go.lintFlags\": [],\r\n    \"go.vetFlags\": [],\r\n    \"go.coverOnSave\":false,\r\n    \"go.useCodeSnippetsOnFunctionSuggest\": true,\r\n    \"go.formatOnSave\": true, \r\n    \"go.formatTool\": \"goreturns\",\r\n    \"go.formatFlags\": [],\r\n    \"go.gocodeAutoBuild\": false,\r\n    \"go.autocompleteUnimportedPackages\": true\r\n}\r\n```\r\n\r\nand Launch settings:\r\n```\r\n{\r\n    \"version\": \"0.2.0\",\r\n    \"configurations\": [\r\n        {\r\n            \"name\": \"Launch\",\r\n            \"type\": \"go\",\r\n            \"request\": \"launch\",\r\n            \"mode\": \"debug\",\r\n            \"program\": \"${workspaceRoot}\",\r\n            \"env\": {},\r\n            \"args\": []\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nAnd it's work fine with glfw 3.1 version\r\n![image](https://cloud.githubusercontent.com/assets/23429917/20272758/7aef4be6-aac1-11e6-8d41-a8a5081817a6.png)\r\n\r\n\r\nGLFW supports says: \r\n\r\n> You're probably using an old version of Go.\r\n\r\nSeems like delve use for debug old version of Go. How i can fix it ?"},"comment":{"url":"https://api.github.com/repos/derekparker/delve/issues/comments/260881260","html_url":"https://github.com/derekparker/delve/issues/670#issuecomment-260881260","issue_url":"https://api.github.com/repos/derekparker/delve/issues/670","id":260881260,"user":{"login":"aarzilli","id":303620,"avatar_url":"https://avatars.githubusercontent.com/u/303620?v=3","gravatar_id":"","url":"https://api.github.com/users/aarzilli","html_url":"https://github.com/aarzilli","followers_url":"https://api.github.com/users/aarzilli/followers","following_url":"https://api.github.com/users/aarzilli/following{/other_user}","gists_url":"https://api.github.com/users/aarzilli/gists{/gist_id}","starred_url":"https://api.github.com/users/aarzilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarzilli/subscriptions","organizations_url":"https://api.github.com/users/aarzilli/orgs","repos_url":"https://api.github.com/users/aarzilli/repos","events_url":"https://api.github.com/users/aarzilli/events{/privacy}","received_events_url":"https://api.github.com/users/aarzilli/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T08:13:18Z","updated_at":"2016-11-16T08:13:18Z","body":"Known bug: #631"}}
{"actor":{"display_login":"aarzilli"}}