{"action":"created","issue":{"url":"https://api.github.com/repos/KlugerLab/FIt-SNE/issues/36","repository_url":"https://api.github.com/repos/KlugerLab/FIt-SNE","labels_url":"https://api.github.com/repos/KlugerLab/FIt-SNE/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/KlugerLab/FIt-SNE/issues/36/comments","events_url":"https://api.github.com/repos/KlugerLab/FIt-SNE/issues/36/events","html_url":"https://github.com/KlugerLab/FIt-SNE/issues/36","id":361937240,"node_id":"MDU6SXNzdWUzNjE5MzcyNDA=","number":36,"title":"Build problems on Windows","user":{"login":"tantrev","id":1903672,"node_id":"MDQ6VXNlcjE5MDM2NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1903672?v=4","gravatar_id":"","url":"https://api.github.com/users/tantrev","html_url":"https://github.com/tantrev","followers_url":"https://api.github.com/users/tantrev/followers","following_url":"https://api.github.com/users/tantrev/following{/other_user}","gists_url":"https://api.github.com/users/tantrev/gists{/gist_id}","starred_url":"https://api.github.com/users/tantrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tantrev/subscriptions","organizations_url":"https://api.github.com/users/tantrev/orgs","repos_url":"https://api.github.com/users/tantrev/repos","events_url":"https://api.github.com/users/tantrev/events{/privacy}","received_events_url":"https://api.github.com/users/tantrev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-19T21:36:22Z","updated_at":"2018-09-21T03:58:05Z","closed_at":null,"author_association":"NONE","body":"Greetings,\r\n\r\nWhen I try to build Flt-SNE using either VS 2015 or VS 2017, I get a host of errors and warnings:\r\n\r\n```\r\n1>------ Build started: Project: FItSNE, Configuration: Debug x64 ------\r\n1>  stdafx.cpp\r\n1>  mman.c\r\n1>  tsne.cpp\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\progress_bar\\progressbar.hpp(35): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(110): warning C4244: 'argument': conversion from 'time_t' to 'unsigned int', possible loss of data\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(298): warning C4244: '=': conversion from 'double' to 'int', possible loss of data\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(300): warning C4244: '=': conversion from 'double' to 'int', possible loss of data\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(303): warning C4244: '=': conversion from 'double' to 'int', possible loss of data\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(333): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(334): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(372): error C2065: 'CLOCK_MONOTONIC': undeclared identifier\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(372): error C3861: 'clock_gettime': identifier not found\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(388): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(403): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(417): error C2065: 'CLOCK_MONOTONIC': undeclared identifier\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(417): error C3861: 'clock_gettime': identifier not found\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(487): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(492): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(498): error C2065: 'CLOCK_MONOTONIC': undeclared identifier\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(498): error C3861: 'clock_gettime': identifier not found\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(514): error C2065: 'CLOCK_MONOTONIC': undeclared identifier\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(514): error C3861: 'clock_gettime': identifier not found\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(188): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(228): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(251): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(266): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(273): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(343): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(350): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(357): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(512): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 2 has type 'time_t'\r\n1>  c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(512): note: consider using '%lld' in the format string\r\n1>  c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(512): note: consider using '%Id' in the format string\r\n1>  c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(512): note: consider using '%I64d' in the format string\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(557): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(1769): note: see declaration of 'sprintf'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(558): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(594): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(608): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(635): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(654): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(689): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(722): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(737): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(766): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(787): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(832): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(884): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(1769): note: see declaration of 'sprintf'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(885): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1006): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1037): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1234): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1235): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1250): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1280): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1341): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1368): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1407): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1411): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1453): warning C4018: '<=': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1471): warning C4018: '<=': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1570): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\tsne.cpp(1671): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n1>  c:\\program files (x86)\\windows kits\\10\\include\\10.0.10240.0\\ucrt\\stdio.h(205): note: see declaration of 'fopen'\r\n1>  sptree.cpp\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(53): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(54): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(81): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(106): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(110): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(293): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(313): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(322): warning C4244: '=': conversion from 'double' to 'int', possible loss of data\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(366): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(392): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(394): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(396): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(401): warning C4018: '<': signed/unsigned mismatch\r\n1>c:\\users\\tantr\\workplace\\fit-sne\\src\\sptree.cpp(403): warning C4018: '<': signed/unsigned mismatch\r\n1>  nbodyfft.cpp\r\n1>  Generating Code...\r\n========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========\r\n```\r\n\r\nAny ideas by chance on how to fix the errors?  Thank you in advance."},"comment":{"url":"https://api.github.com/repos/KlugerLab/FIt-SNE/issues/comments/423406133","html_url":"https://github.com/KlugerLab/FIt-SNE/issues/36#issuecomment-423406133","issue_url":"https://api.github.com/repos/KlugerLab/FIt-SNE/issues/36","id":423406133,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzQwNjEzMw==","user":{"login":"linqiaozhi","id":19375944,"node_id":"MDQ6VXNlcjE5Mzc1OTQ0","avatar_url":"https://avatars1.githubusercontent.com/u/19375944?v=4","gravatar_id":"","url":"https://api.github.com/users/linqiaozhi","html_url":"https://github.com/linqiaozhi","followers_url":"https://api.github.com/users/linqiaozhi/followers","following_url":"https://api.github.com/users/linqiaozhi/following{/other_user}","gists_url":"https://api.github.com/users/linqiaozhi/gists{/gist_id}","starred_url":"https://api.github.com/users/linqiaozhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linqiaozhi/subscriptions","organizations_url":"https://api.github.com/users/linqiaozhi/orgs","repos_url":"https://api.github.com/users/linqiaozhi/repos","events_url":"https://api.github.com/users/linqiaozhi/events{/privacy}","received_events_url":"https://api.github.com/users/linqiaozhi/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T03:58:05Z","updated_at":"2018-09-21T03:58:05Z","author_association":"MEMBER","body":"@tantrev Thanks for the bug report, and @dkobak thanks for investigating!\r\n\r\nI was worried that the thread-compatible time functions in the last commit might mess things up for some users. I'll fire up the Windows VM and try out the fix in that SO post. In the worst case, we can just remove the timings unless some debug flag is set or something."}}
{"actor":{"display_login":"linqiaozhi"}}