Hello , I am try to call the c program in the golang , but i am getting the issue . please see the error message : package main
go list failed to return CompiledGoFiles. This may indicate failure to perform cgo processing; try building at the command line. See https://golang.org/issue/38990.go list View Problem (Alt+F8) //#cgo LDFLAGS: -L. -llibCWrapper-win64 -Wl,-rpath,. //#include "ealApiLib.h" import "C" import "fmt" func main() { result := C.Connect("192.168.1.1") fmt.Println("connection success" + result) } On Thursday 23 May 2024 at 02:53:12 UTC+5:30 peterGo wrote: > cgo command > https://pkg.go.dev/cmd/cgo > Cgo enables the creation of Go packages that call C code. > > On Wednesday, May 22, 2024 at 4:41:13 PM UTC-4 Carla Pfaff wrote: > >> Yes, you can call C functions from Go, it's called Cgo: >> https://go.dev/blog/cgo >> >> On Wednesday 22 May 2024 at 18:04:19 UTC+2 Pavan Kumar A R wrote: >> >>> >>>> Okay, it's possible to call the C program to Golang. Because I also >>>> have the C platform dlls and the C platform dlls we using in the cross >>>> platform mono and in the mono internally call the.net dlls function , >>>> can I use the C program dlls in Golang? >>>> >>> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d8665110-07f3-4f0d-8e14-49900cd4b6abn%40googlegroups.com.