bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

include in a C++ program


From: Lorenzo Bettini
Subject: include in a C++ program
Date: Sat, 09 Dec 2006 22:11:49 +0100
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Hi

I've just started using gnulib, and I have a doubt.
I've imported strdup and I'm using it in a C++ program.

Now should I import strdup.h in the C++ program simply like this

#include "strdup.h"

Or should I wrap it as follows?

extern "C" {
#include "strdup.h"
}

thanks in advance
        Lorenzo

--
+-----------------------------------------------------+
| Lorenzo Bettini          ICQ# lbetto, 16080134      |
| PhD in Computer Science, DSI, Univ. di Firenze      |
| Florence - Italy        (GNU/Linux User # 158233)   |
| http://www.lorenzobettini.it                        |
| http://tronprog.blogspot.com  BLOG                  |
| http://www.purplesucker.com Deep Purple Cover Band  |
| http://www.gnu.org/software/src-highlite            |
| http://www.gnu.org/software/gengetopt               |
| http://www.gnu.org/software/gengen                  |
| http://doublecpp.sourceforge.net                    |
+-----------------------------------------------------+





reply via email to

[Prev in Thread] Current Thread [Next in Thread]