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 ..
Category : go
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 ..
Does anyone know something that can help me create an overlay like steam’s shift + tab or discord’s overlay? Source: Windows..
I develop Go application that monitors filesystem for changes. Appears that there are no cross-platform filesystem changes monitoring libraries available for Go if one needs to monitor the directory tree recursively. I defelop using macOS, but I need support for Windows and Linux OSes. Both platforms support this feature on a system layer, but I ..
I am trying to create a docker image out of a mostly-go source base. The problem is that the go code also calls a C++ library (libsodium), so the generated container lacks libstdc++. Here is my approach: first, I bundle the distroless go image with a few things created with pkg_tar(): container_image( name = "new_base_image", ..
Requirement is to call CPP function in GO. I’m able to implement sample (calling sample CPP function in GO) using swig but actual CPP code (code which is to be integrated with GO) has CMakeLists.txt. How to link/run CMakeLists.txt of CPP with GO. Source: Windows Que..
Requirement is to call CPP function in GO. I’m able to implement sample (calling sample CPP function in GO) using swig but actual CPP code (code which is to be integrated with GO) has CMakeLists.txt. How to link/run CMakeLists.txt of CPP with GO. Source: Windows Que..
Similar questions here How can I call linux shared library functions in Go? but too a beginner to understand it. I am a C programmer and learning Go in a hard way. Currently studying and porting an existing Python codes (python1.py and python3.py) to Go The existing Python files(along with delphi.cpp) have been compiled and ..
I have to call C++ function in Go. Project directory is like: -Template (project folder) – incl (cpp header files) – test.h – src (.cpp files) – test.cpp – src.swigcxx – CMakeLists.txt – main.go (go code which calls cpp function) Unable to run commands in CMakeLists.txt of C++ in Go? Source: Windows Que..
I have to call C++ function in Go. Project directory is like: -Template (project folder) – incl (cpp header files) – test.h – src (.cpp files) – test.cpp – src.swigcxx – CMakeLists.txt – main.go (go code which calls cpp function) observed whatever the commands in CMakeLists.txt of C++ are not effecting when i call cpp ..
Recent Comments