This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ bug when using extern "C"
- To: Dirk De Rycke <dirk dot de dot rycke at chello dot be>
- Subject: Re: C++ bug when using extern "C"
- From: dvv at egcs dot dvv dot ru (Dima Volodin)
- Date: Sat, 14 Jul 2001 23:01:54 GMT
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: Huh?
- References: <3B4F619C.B6630276@chello.be>
On Fri, 13 Jul 2001 23:01:16 +0200, you wrote:
>Hi,
>
>Today I may have hit a bug in g++.
>Try compiling the following program with g++ -c
>
>extern "C" {
> void xxx(void (*f)());
> void yyy(void (*f)(void));
>}
>
>void xxx(void (*f)())
>{
>}
>
>void yyy(void (*f)(void))
>{
>}
AFAIK, you must specify the linkage for both declarations and
definitions.
>Dirk De Rycke
Dima