Mailing List Archive

gpg on Windows
I really have no business even trying this, due to my inexperience with
Unix software, but I *have* been forced to write c++ code for 2 years now
(and hated every minute of it).

Anyway, I'm now needing to get gpg on Windows. Here's what I know so far:

Somebody compiled it for Windows back in 0.2.? days... Hopefully they're
still around and willing to point me in the right direction so I can
compile this.

I'm using Borland c++ 5.01, since that's what I've got. My budget is a big
fat zero, so hopefully this sucky IDE will be okay.

I have a make.exe, which, if I had a makefile, might actually work.

I don't have a makefile, and I don't have a configure.exe to make a makefile.

The brain-dead naive attempt to just throw all the source code into a
project and compile failed miserably. Not that I expected it to work, but
it did point up that there's three congif.h files on my hard drive, but
none that are what gpg is probably looking for.

The Borland mem.h defines a memicmp differently than util.h I'm probably
missing something in Borland's interminible compiler options and target
dialogs to use Unix libraries, but, if not, *THIS* one I could probably fix
on my own in something less than infinite time. :-)

So, the questions I think I want to ask are:

Where would I find a configure program for Windows?

Where would I find the source/header files that gpg expects on a standard
unix box, but that apparently are not on my Windows box?

What else am I too dumb to even know to ask?

THANKS!!!

PS If I actually get it to compile, of course I'll give contribute the binary!

--
--
-- "TANSTAAFL" Rich lynch@lscorp.com
Re: gpg on Windows [ In reply to ]
Richard Lynch <lynch@lscorp.com> writes:

> Somebody compiled it for Windows back in 0.2.? days... Hopefully they're

It's me.

> still around and willing to point me in the right direction so I can
> compile this.

Somewhere on my homepage www.d.shuttle.de/isil is a pointer to
mingw32/cpd - that is what you need to compile it (and Linux or
Solaris)

> I'm using Borland c++ 5.01, since that's what I've got. My budget is a big
> fat zero, so hopefully this sucky IDE will be okay.

No. And gcc is much cheaper (in terms of money). If you can't switch
to Linux (a 100meg partition is enough for minimal development
system); I suggest you install CygWin32 which gives you a Unix
environment on a Windows "host".

> I don't have a makefile, and I don't have a configure.exe to make a makefile.

Cygwin should help. Don't know the URL, but you should find it
somewhere at www.cygnus.com.

> The Borland mem.h defines a memicmp differently than util.h I'm probably
> missing something in Borland's interminible compiler options and target
> dialogs to use Unix libraries, but, if not, *THIS* one I could probably fix
> on my own in something less than infinite time. :-)

You need a POSIX environment.

> What else am I too dumb to even know to ask?

It is not a big problem for me to compile it, but ist is some work
because I have to undef some Unix functions (chmod etc.) and I'm not
sure whether I unlinked a file before closing it (which Windows does
not accept :-().

If you have the cross compiler installed you can to this:

./configure --target=i386--mingw32 --with-included-zlib \
--disable-nls
make

And you should end up with a gpg.exe (after some bug fixing)


Werner