There are several issues that should be checked/solved to build agent2 on windows:
- not in all places linux specific code is properly put into linux specific files/protected with +build option. This is already being improved in DEV-1323
- cGO on Windows requires gcc compatible compiler, while we are using Microsoft C compiler for Windows builds.
- the shared C code must compile with the gcc compatible compiler, so it can be linked together.
- link to OpenSSL dll for encryption support
First we must focus on (2). Might be easier to check with small prototype. Then we can start working on (3) by expanding prototype to use C/GO linking approach used in agent2. After linking issues are solved we can start working on agent C code compilation for linking with agent2.