Build Golang + ZEROMQ development environment on WIN8 64bit

Source: Internet
Author: User
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:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.