Hello
I have some problems getting 0MQ running with goLang on Windows.
First let me give you some information:
OS: Win8.1 64Bit
Go version: go1.3.1 windows/386
0MQ: ZeroMQ-4.0.4~miru1.0-x86.exe (installed)
0MQ is installed into: C:\Program Files (x86)\ZeroMQ 4.0.4\
First I created the following env-settings:
LD_LIBRARY_PATH=C:\Program Files (x86)\ZeroMQ 4.0.4\bin;C:\Program Files (x86)\ZeroMQ 4.0.4\lib
LIBRARY_PATH=C:\Program Files (x86)\ZeroMQ 4.0.4\bin;C:\Program Files (x86)\ZeroMQ 4.0.4\lib
C_INCLUDE_PATH=C:\Program Files (x86)\ZeroMQ 4.0.4\include
I copied and renamed 'libzmq-v120-mt-4_0_4.dll' from then 0MQ-InstallDir\bin into libzmq.dll and was then able to do a 'go get
github.com/pebbe/zmq4' which installed the goLang binding:
28.11.2014 20:23 <DIR> zmq4
28.11.2014 20:23 626.896 zmq4.a
Now to my problem ...
I have a very simple program:
///////////////////////
package main
import (
"fmt"
)
func main() {
fmt.Println("Started Simulation")
worker, _ := zmq.NewSocket(zmq.REQ)
worker.Close()
}
///////////////////////
When
build and started, the application just crashes. The Println does
not show up, so I guess it's the loading of the 0MQ-lib.
LiteIDE says 'Error: process crashed or was terminated while running.'
Does someone have any hints, where to look next?
I did already tried many different things:
- Building 0MQ from source (I have VS2010/12 over here)
- Trying the 64Bit version
- Trying the 4.1.0
- Building 0MQ with mingw
All behave in the same way...
Using the installed 0MQ version with pyzmq works on the same machine.
And just as info: I'm very new to goLang (perhaps one day ..) and also to 0MQ (three quaters of the online-guide)
Many thanks in advance
Rene