Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during build #1

Open
kahlys opened this issue Jan 25, 2021 · 0 comments
Open

Error during build #1

kahlys opened this issue Jan 25, 2021 · 0 comments

Comments

@kahlys
Copy link

kahlys commented Jan 25, 2021

I tried the example in the readme

package main

import (
	"fmt"

	"github.com/vaughan0/go-gdbm"
)

func main() {
	fmt.Println("Hello")

	db, err := gdbm.Open("my-stuff.db")
	if err != nil {
		panic(err)
	}
	defer db.Close()
}

But had an error during build

$ go build main.go

# github.com/vaughan0/go-gdbm
../../go/pkg/mod/github.com/vaughan0/[email protected]/gdbm.go:68:153:
    cannot use _cgo2 (type *_Ctype_int) as type unsafe.Pointer in argument to _Cfunc_gdbm_setopt

Env

  • Go version : go version go1.15.5 linux/amd64
  • libgdbm-dev : 1.14.1-6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant