alexbrainman / odbc

odbc driver written in go
BSD 3-Clause "New" or "Revised" License
356 stars 141 forks source link

Compile errors when building from Windows OS with GOOS=linux #162

Open smdonsos opened 3 years ago

smdonsos commented 3 years ago

Hi,

I'm getting an error while trying to build a binary for Linux from a Windows OS:

image

Hope you can give me some pointers, thank you!

alexbrainman commented 3 years ago

'm getting an error while trying to build a binary for Linux from a Windows OS:

This looks normal. The github.com/alexbrainman/odbc packages uses cgo on Linux. So the build process expects to find appropriate C files.

Alex

smdonsos commented 3 years ago

I've also tried to compile frorm cygwin with mingw64 libraries installed on my machine: image

Both gcc and g++ libraries present: image

Does this module require any specific C compiler? Thanks