This is a creation in Article, where the information may have evolved or changed.
1, download Zeromq stable release4.0.5 Source: http://zeromq.org/intro:get-the-software
2, compile the source code: I use VS2012, will Msvc10.sln project import, as shown in
Note: The compilation options here are remembered as Release and Win32. If selected for Debug mode, the generated Lib and DLL files are named Libzmq_d.dll, Libzmq_d.lib. According to the online related posts, remove the name "_d", and then use the "Go get github.com/pebbe/zmq4" command in the later steps, although you can generate zmq4.a archive, go build and go install can be done normally, but Go run will have an error executing the file, the specific situation of interested students can try.
3, install git program: Go get command will use git command, if do not install the "Go get github.com/pebbe/zmq4" command will be error. The specific installation method can go online search, very simple.
4, installation of GCC tools: Online recommendation with MinGW software, but it seems quite complex, it seems to be under the package is very much, a little dizzy ... Here, I found a convenient way, directly download devc++, the source files have been put in my download, you can download. After the download is complete, install directly, the installed directory will have MinGW32, the bin directory under MinGW32 into the system environment variable PATH, otherwise there is no GCC command.
5, will have compiled libzmq.lib and Libzmq.dll files into the Lib directory MinGW32;
Two header files for the Include folder under the ZMQ directory are copied into the include in MinGW32
6, execute "Go get github.com/pebbe/zmq4" command, normal, no prompt message, in the system Gopath PKG package will generate the corresponding file:
7. Test: