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

compilation terminated #27

Open
yyf1986 opened this issue May 10, 2022 · 1 comment
Open

compilation terminated #27

yyf1986 opened this issue May 10, 2022 · 1 comment

Comments

@yyf1986
Copy link

yyf1986 commented May 10, 2022

package main

import (
	"github.com/proglottis/gpgme"
	"fmt"
)

func main() {
	ctx, err := gpgme.New()
	if err != nil {
		panic(err)
	}
	defer ctx.Release()

	fmt.Println(ctx.EngineInfo().Version())
}

when I run cmd go run main.go

An error is as follows

github.com/proglottis/gpgme

../GoCode/pkg/mod/github.com/proglottis/[email protected]/data.go:4:11: fatal error: gpgme.h: No such file or directory
// #include <gpgme.h>
^~~~~~~~~
compilation terminated.

@proglottis
Copy link
Owner

@yyf1986 which OS? Do you have gpgme installed?

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

2 participants