Re: [go-nuts] cgo.go: multiple definition of `c_test_func'

2023-10-06 Thread Ian Lance Taylor
On Thu, Oct 5, 2023 at 3:13 PM sbezverk wrote: > > I struggle to understand why this simple cgo program does not get linked, I > would provide example in playground, but it does not seem to support cgo. > > ``` > package main > > > > // #include > > // > > // extern int go_test_func(int c1, int

[go-nuts] cgo.go: multiple definition of `c_test_func'

2023-10-05 Thread sbezverk
Hello, I struggle to understand why this simple cgo program does not get linked, I would provide example in playground, but it does not seem to support cgo. ``` package main // #include // // extern int go_test_func(int c1, int c2); // // int c_test_func(int c1, int c2) // {