[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Including verify.h in C++ with C linkage
From: |
Bruno Haible |
Subject: |
Re: Including verify.h in C++ with C linkage |
Date: |
Sun, 17 Mar 2019 21:51:39 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
> > the preferred way to include .h files in C++ is like
> > #include "verify.h"
>
> Right, my issue was that the file I need to include has to be wrapped in
> an extern "C" because I need to have C linkage with the definitions
> provided, but that file in turn includes verify.h.
The right fix is to add extern "C" {} around the declarations and type
definitions of that file, but *not* around the #includes that it does.
Bruno