Making a forward declaration of a C symbol defined in another CU
Alexander Nicholi
alex at arqadium.com
Thu Dec 20 08:31:53 UTC 2018
On Thursday, 20 December 2018 at 08:27:55 UTC, Dennis wrote:
> On Thursday, 20 December 2018 at 08:17:58 UTC, Alexander
> Nicholi wrote:
>>
>> extern (C) const ushort ocoCoreVerMajor;
>> extern (C) const ushort ocoCoreVerMinor;
>> extern (C) const ushort ocoCoreVerPatch;
>> extern (C) const char* ocoCoreVerBuild;
>> extern (C) const char* ocoCoreTimestamp;
>
> Mark these as external, so extern(C) extern const ...
Oh, that works fine, thanks. I thought I already did that with
the extern (C), but I guess that's a different kind of extern
isn't it
More information about the Digitalmars-d
mailing list