Skip to content

compilation terminated #27

@yyf1986

Description

@yyf1986
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/gpgme@v0.1.1/data.go:4:11: fatal error: gpgme.h: No such file or directory
// #include <gpgme.h>
^~~~~~~~~
compilation terminated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions