GPGMe Question (possibly round 2)

Daniel Sullivan dansully at
Tue Mar 29 00:28:46 CEST 2011


Thank-you for your reply.  I found this post by Werner Koch that said I could use C++ with gpgme.  Is this not correct?

Dan Sullivan

On Mar 28, 2011, at 4:08 PM, Robert J. Hansen wrote:

> On Mon, 28 Mar 2011 15:29:01 -0500, Daniel Sullivan
> <dansully at>
> wrote:
>> This is my first posting to this list, I apologize if I am posting to
> the
>> wrong place.  If this email should be directed to a different email
> address
>> please let me know and I will make sure to bark up somebody else's tree.
> Here or GnuPG-Users are good choices.  GnuPG-Users is probably a better
> choice, but here works fine.
>> Admittedly I am learning
>> C++ at the same time I am doing this, so I am a newbie in many regards. 
> C++ may be part of the problem.  Have you tried telling NetBeans this is a
> straight C program?  (You will need to change your code for it to compile
> as C: #include <cstdlib> should become #include <stdlib.h>, and you'll need
> to remove #include <iostream> and the using statement.)
> I would not recommend using C libraries if you're just beginning to learn
> C++.  Modern C++ code is written in a vastly different style than C.  If
> you're just learning C++ and you're linking against C, you're going to
> effectively be trying to learn how to program in two different languages at
> the same time.
> Please don't think I'm trying to discourage you -- nothing of the sort. 
> C++ and C are both worth learning.  It's just that trying to learn them
> both at the same time will be a bit of a challenge.  :)
> Best of luck!

More information about the Gnupg-devel mailing list