[Gpg4win-devel] gpgme in gpg4win?

Drew Northup dnorthup at maine.edu
Wed Dec 2 16:16:51 CET 2009


On Wed, 2009-12-02 at 14:54 +0100, Marcus Brinkmann wrote:
> Nikolay Sklabinsky wrote:
> > Thanks, Marcus.
> > I went the way you recommended (see below) and after some walking in circles
> > I managed to configure and make libgpg-error, then configure gpgme. However,
> > I cannot build the latter.
> > First, in conversion.c I had to replace #include <errno.h> with #include
> > <err-codes.h>, because I could not find the errno.h.
> 
> As werner said, errno.h is part of mingw, which apparently is not found.  On
> Debian/Ubuntu it is in /usr/i586-mingw32msvc/include/errno.h.  It is found by
> i586-mingw32msvc-cpp automatically:
> 
> $ i586-mingw32msvc-cpp -v /dev/null
> [...]
> #include <...> search starts here:
>  /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include
>  /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include
> End of search list.
> [...]
> 
> The problem could be in your mingw32 install, or if it is not, the way you
> configure gpgme.  You could send me a config.log and I take a look at it.

If he's attempting to use a bare MS VC++/C# toolchain he should also
have <errno.h> in his include path under most circumstances, or be able
to enable it with minimum difficulty. He may need to turn on "Extern
C" (Extern C++?) functionality in his project settings to make his
compiler/linker search the include path for non-C# headers however. I
don't recall what they called that setting in the dialogs, but it
shouldn't be too hard to find.
-- 
---------------------------------+--------------------------------------
Drew Northup                     |          Technical Support Specialist
University of Maine System       |                Drew.Northup at Maine.edu
Computing Center                 |                 phone: (207) 561-3513
Orono, ME 04469                  |                   fax: (207) 561-3531




More information about the Gpg4win-devel mailing list