Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-23 Thread 'Brian Candler' via golang-nuts
"try building at the command line" That's your clue. You'll most likely get a meaningful error message on stderr, which your IDE is hiding. On Thursday 23 May 2024 at 13:47:10 UTC+1 Pavan Kumar A R wrote: > Hello , > > I am try to call the c program in the golang , but i am getting the issue

Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-23 Thread Pavan Kumar A R
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.

Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread peterGo
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

Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread 'Carla Pfaff' via golang-nuts
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

Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread Pavan Kumar A R
> > 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 becau

[go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread 'Carla Pfaff' via golang-nuts
You can't call .NET functions directly from Go. Go programs and .NET have two completely different runtimes. You would need some form of inter-process communication (IPC). On Wednesday 22 May 2024 at 14:31:04 UTC+2 Pavan Kumar A R wrote: > Hello , > > I build the.net dlls in the target framewor