I completely agree with Robbie that if you are starting some new work with
go and amqp you might look elsewhere.

Having said that, I think the issue here might be that your go build might
be picking up older system header files for proton that don't define
pn_tostring() which has only recently been added to the development main
branch (rather than picking up the newer header files that come with the
main branch.

On Tue, Jul 5, 2022 at 3:20 PM Paul Larsen <paul.r.lar...@gmail.com> wrote:

> As a follow-up:
>
> I downloaded the previous commit of the Proton package for Go, and I can
> now compile the code.
> I'm not sure if there is a bug in the latest commit or if my environment is
> not set up properly.
>
> -Paul
>
> On Mon, Jul 4, 2022 at 9:07 AM Paul Larsen <paul.r.lar...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I'm trying to experiment with the Electron package for Golang to
> > potentially migrate my messaging app away from C++.
> >
> > I'm currently working in Rocky Linux with 1.17.  Creating a simple
> program
> > fails with the following error message:
> > # github.com/apache/qpid-proton/go/pkg/proton
> > ../../go/pkg/mod/
> >
> github.com/apache/qpid-proton@v0.0.0-20220624173714-c33f1abc1793/go/pkg/proton/wrappers.go:129:9
> :
> > could not determine kind of name for C.pn_tostring
> >
> > Here is the sample code -
> >
> > package main
> >
> > import (
> > "fmt"
> >
> > "github.com/apache/qpid-proton/go/pkg/electron"
> > )
> >
> > func main() {
> > cntr := electron.NewContainer("test")
> > fmt.Println(cntr.Id())
> > }
> >
> > Any help would be appreciated!
> >
> > Thank you,
> >
> > Paul Larsen
> >
>

Reply via email to