{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/311","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/311/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/311/events","html_url":"https://github.com/htacg/tidy-html5/issues/311","id":117774387,"number":311,"title":"exe don't work","user":{"login":"guzur","id":8133403,"avatar_url":"https://avatars.githubusercontent.com/u/8133403?v=3","gravatar_id":"","url":"https://api.github.com/users/guzur","html_url":"https://github.com/guzur","followers_url":"https://api.github.com/users/guzur/followers","following_url":"https://api.github.com/users/guzur/following{/other_user}","gists_url":"https://api.github.com/users/guzur/gists{/gist_id}","starred_url":"https://api.github.com/users/guzur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzur/subscriptions","organizations_url":"https://api.github.com/users/guzur/orgs","repos_url":"https://api.github.com/users/guzur/repos","events_url":"https://api.github.com/users/guzur/events{/privacy}","received_events_url":"https://api.github.com/users/guzur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Build/Install/Distribute","name":"Build/Install/Distribute","color":"991d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/htacg/tidy-html5/milestones/6","html_url":"https://github.com/htacg/tidy-html5/milestones/5.1","labels_url":"https://api.github.com/repos/htacg/tidy-html5/milestones/6/labels","id":1030807,"number":6,"title":"5.1","description":"Next release","creator":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":55,"state":"open","created_at":"2015-03-20T11:30:55Z","updated_at":"2015-11-20T16:35:41Z","due_on":"2015-12-14T23:00:00Z","closed_at":null},"comments":10,"created_at":"2015-11-19T09:31:03Z","updated_at":"2015-11-21T14:07:17Z","closed_at":null,"body":"I'm trying to compile tidy library on Windows with MinGW . \r\n\r\nWhen I try to compile with Eclipse and Cmake I have an error with this line: \r\nif ( !GetFileSizeEx( fp, (LARGE_INTEGER*)&fin->size ) \r\nIn mappedio.c line 207. GetFileSizeEx is unknown.\r\n\r\nIf I comment this code, I can compile without errors the library, but when I try to execute the exe it gets locked or freeze. There isn't any output.\r\n\r\nAnyone can help me with this?\r\nThank you very much."},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/158645132","html_url":"https://github.com/htacg/tidy-html5/issues/311#issuecomment-158645132","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/311","id":158645132,"user":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T14:07:17Z","updated_at":"2015-11-21T14:07:17Z","body":"@guzur ok, maybe it is time to run it in a Debugger!\r\n\r\nReading around it seems MinGW ships with a port of the unix gdb - see [here](http://stackoverflow.com/questions/4671900/how-do-i-use-the-mingw-gdb-debugger-to-debug-a-c-program-in-windows), and it seems Eclipse can connect to that in the [IDE](http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_debug_prog.htm)...\r\n\r\nTo enable debug symbols to be added to the binary, you will probably need to build the debug version, `-DCMAKE_BUILD_TYPE=Debug`. As you can see in the first link above this adds a `-g` option the the compile. You might also add `-DCMAKE_VERBOSE_MAKEFILE=ON` just to check the `-g` gets added...\r\n\r\nYou could also create a simple `Hello World` program, and see what that does, like -\r\n\r\n```\r\n#include <stdio.h>\r\nint main (int argc, char **argv)\r\n{\r\n    printf(\"Hello World\\n\");\r\n    return 1;\r\n}\r\n```\r\n\r\nCompile it like in the first link, run it, and run it in the gdb debug... \r\n\r\nAfter loading the exe set a breakpoint at main, like `break main`, and then `run` should stop at `main`, and print the first line. A `step` command should advance to the next statement... but I have **not** used gdb very often, so you have to read up on [gdb](https://sourceware.org/gdb/current/onlinedocs/gdb/)...\r\n\r\nJust out of interest, can you post your tidy.exe somewhere I can download it from?\r\n\r\nReally, I have no idea why your Eclipse/MinGW built tidy fails! But running in the gdb debugger you may be able to provide more clues... tidy.exe certainly does not seem to be built correctly...\r\n"}}