Skip to content

Issues with building on Windows #14

@phryneas

Description

@phryneas

Hi there,
I'm trying to use this library on Windows using the msys2 mingw64.

First of all: if you want to try this yourself, you have to install the mingw gpgme library using pacman -S mingw-w64-x86_64-gpgme and you have to do so in the mingw64 environment.

Now the problems:
For one, it complains when building the unsetenvGPGAgentInfo function:

% go run main.go                                                                                                                                                             # github.com/proglottis/gpgme
could not determine kind of name for C.unsetenv
[1]    13260 exit 2     go run src/main/hostApp.go

when I just comment this line out (as I understand the comment, it is just used for testing?), I get this error:

# github.com/proglottis/gpgme
src\github.com\proglottis\gpgme\data.go:184: cannot use C.off_t(offset) (type C.off_t) as type C.gpgme_off_t in argument to func literal

changing the offending line to
n, err := C.gpgme_data_seek(d.dh, C.gpgme_off_t(offset), C.int(whence))
let's me compile everything.

I still haven't come around to really using the library yet, that will be my next step. I just thought I'd report what I've encountered so far.

Thanks for the wrapper, it's really appreciated.

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