{"action":"created","issue":{"url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/446","labels_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/446/comments","events_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/446/events","html_url":"https://github.com/JustinTulloss/zeromq.node/issues/446","id":100884396,"number":446,"title":"ZeroMQ with Sodium on Windows 7","user":{"login":"Maylyon","id":12142208,"avatar_url":"https://avatars.githubusercontent.com/u/12142208?v=3","gravatar_id":"","url":"https://api.github.com/users/Maylyon","html_url":"https://github.com/Maylyon","followers_url":"https://api.github.com/users/Maylyon/followers","following_url":"https://api.github.com/users/Maylyon/following{/other_user}","gists_url":"https://api.github.com/users/Maylyon/gists{/gist_id}","starred_url":"https://api.github.com/users/Maylyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maylyon/subscriptions","organizations_url":"https://api.github.com/users/Maylyon/orgs","repos_url":"https://api.github.com/users/Maylyon/repos","events_url":"https://api.github.com/users/Maylyon/events{/privacy}","received_events_url":"https://api.github.com/users/Maylyon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-13T22:35:17Z","updated_at":"2015-08-14T14:32:36Z","closed_at":null,"body":"I am trying to write an application that uses CURVE using ZeroMQ for node.  On Linux, I compiled and installed libzmq and libsodium before \"npm install zmq\" and CURVE is working.  On Windows 7 however, after performing \"npm install zmq\", my application crashes on startup with:\r\n\r\n.\\node_modules\\zmq\\lib\\index.js:280\r\n    return this._zmq.setsockopt(opts[name], val);\r\n                     ^\r\nError: Invalid argument\r\n    at Error (native)\r\n    at null.curve_server (c:\\Users\\Maylyon\\Desktop\\SCS\\node_modules\\zmq\\lib\\index.js:280:22)\r\n    at new scsSciIf (c:\\Users\\Maylyon\\Desktop\\SCS\\scs\\scsSciIf.js:24:35)\r\n    at new scsManager (c:\\Users\\Maylyon\\Desktop\\SCS\\scs\\scsManager.js:18:18)\r\n    at Object.<anonymous> (c:\\Users\\Maylyon\\Desktop\\SCS\\main.js:4:15)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:501:10)\r\n\r\nHow can I build ZeroMQ on Windows and use libsodium functionality?"},"comment":{"url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/comments/131124763","html_url":"https://github.com/JustinTulloss/zeromq.node/issues/446#issuecomment-131124763","issue_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/446","id":131124763,"user":{"login":"kkoopa","id":4103081,"avatar_url":"https://avatars.githubusercontent.com/u/4103081?v=3","gravatar_id":"","url":"https://api.github.com/users/kkoopa","html_url":"https://github.com/kkoopa","followers_url":"https://api.github.com/users/kkoopa/followers","following_url":"https://api.github.com/users/kkoopa/following{/other_user}","gists_url":"https://api.github.com/users/kkoopa/gists{/gist_id}","starred_url":"https://api.github.com/users/kkoopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkoopa/subscriptions","organizations_url":"https://api.github.com/users/kkoopa/orgs","repos_url":"https://api.github.com/users/kkoopa/repos","events_url":"https://api.github.com/users/kkoopa/events{/privacy}","received_events_url":"https://api.github.com/users/kkoopa/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T14:32:36Z","updated_at":"2015-08-14T14:32:36Z","body":"I'd guess on something related to the dll loading as the most likely culprit. Try debugging the [init](https://github.com/JustinTulloss/zeromq.node/blob/master/binding.cc#L1387-L1419) function, either with the Visual Studio debugger or by adding trace statements to the code to verify the flow."}}