Closed Demitroi closed 6 years ago
Maybe some Windows things are not available on Linux.
That is correct. This package does not talk to the database directly, it uses whatever ODBC driver OS has installed.
So, for example, Windows have generally some ODBC drivers installed, and your program will work on Windows as is, but even there you sometimes need to install ODBC drivers.
On non-Windows on the other hand, ODBC drivers are only accessible via C interface. So this package uses cgo to access that. I doubt you would be able to cross-compile cgo Linux code on Windows - for that you would need Windows version of gcc that has all Linux versions of required code. I am not an expert, but I think cross-compiling in C is not easy. You might have much better chance to build your program on Linux. But even then you would need to install and configure some extra software. See https://github.com/alexbrainman/odbc/wiki/GettingStartedOnLinux for some suggestions.
Alex
Thanks for your attention Alex
The better alternative is build in a linux machine.
Demitroi
Hi Alex,
This package is awesome and works fine on Windows. But when i try build in linux throws the next error:
I'm trying to build in a Windows 7 x64 machine.
Maybe some Windows things are not available on Linux.