DMD Refuses to Compile Multiple Source Files
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jan 17 19:51:50 PST 2017
On Wednesday, 18 January 2017 at 03:37:46 UTC, Samwise wrote:
> extern int getReturnCode() {
> return 4;
> }
>
> still does not compile using the command from above. I may very
> well be misunderstanding you though.
yep. *both* prototype and real declaration should be `extern(C)`.
`(C)` part is important too!
More information about the Digitalmars-d-learn
mailing list