Reputation: 2385
I have to switch to windows for a week and I cant run my project
I installed GCC via Cygwin and added it to path, I can call it from any shell. I set CGOENABLED=1
because it was required but I keep getting
gcc_libinit_windows.c: In function '_cgo_beginthread':
gcc_libinit_windows.c:143:27: error: implicit declaration of function '_beginthread'; did you mean '_cgo_beginthread'? [-Werror=implicit-function-declaration]
143 | thandle = _beginthread(func, 0, arg);
| ^~~~~~~~~~~~
| _cgo_beginthread
cc1: all warnings being treated as errors
please help i lost whole day trying to fix this
Upvotes: 1
Views: 61
Reputation: 2385
After trying a bunch of things from mingw-w64, Cygwin and source forge, vs dev tools... I removed everything and installed latest releases from tdm-gcc and it works now properly
Upvotes: 0