Alex
Can't help you wit cgo. But if you can package your libs as dll on Windows, it is fairly easy to access them fro Go. Regardless what tools you use to produce the dll.Alex
After a weekend of fiddling with build settings, we came to the conclusion that the Windows binaries wouldn't work with cgo. We recompiled Go from source with MinGW, but cgo still gave linker errors when trying to link with OpenGL/GLU/GLEW. The problem seems to be that the libraries are compiled and linked with cl.exe, the Visual Studio compiler, and from what I understand, MinGW doesn't like that.
On Mon, Mar 12, 2012 at 10:26 AM, Ross Light wrote:After a weekend of fiddling with build settings, we came to the conclusion that the Windows binaries wouldn't work with cgo. We recompiled Go from source with MinGW, but cgo still gave linker errors when trying to link with OpenGL/GLU/GLEW. The problem seems to be that the libraries are compiled and linked with cl.exe, the Visual Studio compiler, and from what I understand, MinGW doesn't like that.Could you please provide some more details on your procedure and the linker errors?