Category : go

I am trying to compile Go code to library and then link c++ and lib with CMake. I’ve already tried make shared lib with gcc like this https://medium.com/swlh/build-and-use-go-packages-as-c-libraries-889eb0c19838. go build -o cas.so -buildmode=c-shared cmd/c-mock-server/main.go gcc -o main main.c ./cas.so So now I need create shared library and link that with c++ code using CMake, but ..

Read more

I’m using Visual Studio Code under Windows 10, with BitDefender installed, as an administrator. When program in Go is run thru code console, it drop an error – ‘access denied’ and no matter what I’m unable to force it to run. PS C:UsersAdministratorDesktopprogramowanie> go run "c:UsersAdministratorDesktopprogramowanieargsargsy.go" open C:UsersAdministratorAppDataLocalTempgo-build1644240760b001exeargsy.exe: Odmowa dostÄ™pu. go: failed to remove work ..

Read more