Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
5 votes
1 answer
111 views

I am trying to use the PETSc (Portable, Extensible Toolkit for Scientific Computation) library in Go over cgo. After the call of PetscInitialize, the program will crash at a random point with the ...
2 votes
1 answer
193 views

I want to call a go function from C++ and return a string. The function: //export EditStr func EditStr(a string) (ostr string) { ostr = fmt.Sprintf("[["+a+"]]") fmt....
1 vote
0 answers
89 views

macOS: The dynamically loaded .dylib cannot read environment variables that were set by the main Rust process at runtime Windows: The same code works perfectly - the .dll can access environment ...
4 votes
0 answers
65 views

For testing the callas PDF toolbox SDK, I want to convert a sample PDF to a PNG. The callas license is activated. In my main() function, I successfully initialize the SDK. After that, I call the ...
1 vote
1 answer
158 views

Background I am currently using a DLL I generated with golang in python. As a sanity check for debugging I added a function called return_string(), which takes a pointer to a string in C (char*) ...
0 votes
1 answer
93 views

I am working with cgo, I have a parameter that's being passed in as a *C.char. Once it's been used in a function call I no longer need it, so I defer freeing it, but when I do I don't get a result ...
1 vote
2 answers
148 views

I'm trying to compile a Go native binary to use in Java code on Mac. The binary needs to be executed on a linux host which has the following specifications: # uname -a Linux <hostname> 5.14.0-...
3 votes
1 answer
319 views

I'm building a Go application with native (CGO_ENABLED=1) SQLite support using https://github.com/mattn/go-sqlite3. I'm trying to get the builder docker image to a reasonable size. (goreleaser/...
2 votes
1 answer
81 views

I have a file written in C with the format "header.h", and I want to read it using CGO to automatically retrieve the field names defined in header.h. Here is a shortened example where I ...
0 votes
1 answer
127 views

I have written a linux service in Go that processes a large number of image files, converting them from TIFF to JPEG and adding a text overlay on top. I'm using the Go package gographics/imagick/v3 ...
2 votes
1 answer
235 views

I'm still on the learning curve with Go, but I've managed to compile and run a Go program that includes a C object file. The objective is to call an existing static C++ library. The call will be a bit ...
0 votes
0 answers
385 views

I am quite new to golang, and I am doing some experiments with golang and cgo. I wanted to see if golang can benefit with a C program that uses SIMD operations on a simple test, however what I saw is ...
2 votes
0 answers
87 views

I'm using https://github.com/gen2brain/aac-go.git to encode AAC in my golang project, but sometimes I got crash in my ARMV7l linux and I have executed like CGO_DEBUG=1 GOTRACEBACK=crash ./binary to ...
0 votes
0 answers
207 views

I am working on a GO project that links to a shared library (.so) using CGO. I want to embed the library path in the binary using rpath,so that it runs without needing to set the LD_LIBRARY_PATH. ...
ray an's user avatar
  • 1,280
1 vote
1 answer
205 views

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 ...

15 30 50 per page
1
2 3 4 5
...
62

AltStyle によって変換されたページ (->オリジナル) /