Linking external functions?

DLearner bmqazwsx123 at gmail.com
Tue Apr 18 20:05:05 UTC 2023


On Tuesday, 18 April 2023 at 20:00:18 UTC, ag0aep6g wrote:
> On Tuesday, 18 April 2023 at 19:49:04 UTC, DLearner wrote:
>> ```
>> void main() {
>>    import std.stdio;
>>    extern(C) void ExtCallee();
>> ```
>
> Move that declaration out of main.

Thanks - worked!

Is the declaration inside main not visible to the linker?


More information about the Digitalmars-d-learn mailing list