[Top][All Lists]

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

Re: DLL version of Gnokii for Win32

From: Feico de Boer
Subject: Re: DLL version of Gnokii for Win32
Date: Wed, 10 Apr 2002 22:23:09 +0200

I think it just specifies extern linkage. In other words, sybols defined as
'extern' are visible outside the module in which they are defined.


file h.h:
extern int externfunc(void);

file a.c:
#include "h.h"


file b.c:
#include "h.h"

int externfunc(void)

Now it does appear extern linkage is standard but IMHO it does not seem to
hurd. I couldn't find exact definitions for 'extern' however.


----- Original Message -----
From: "Pawel Kot" <address@hidden>
To: <address@hidden>
Sent: Wednesday, April 10, 2002 2:38 PM
Subject: Re: DLL version of Gnokii for Win32

> #else /* !WIN32 */
> # define GNOKIIDLL_API extern
> #endif /* WIN32 */

Ouch. I just noticed that you use this macro not in the declaration,
but in definition. I don't have ANSI C speficifation with me, but
what's the result of the extern in the function definition? I have
never used such construction.

reply via email to

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