How do I make this function from module public?

Jack jckj33 at gmail.com
Wed Oct 14 19:06:16 UTC 2020


On Wednesday, 14 October 2020 at 01:55:13 UTC, Adam D. Ruppe 
wrote:
> On Wednesday, 14 October 2020 at 01:46:11 UTC, Jack wrote:
>>>extern(C):
>>>int mul(int a, int b) { return a *  b;}
>
> mark it `export` as well
>
> and then be sure you are compiling in this module as well, it 
> must be included on the ldc command line along with wasm.d

worked, thanks!


More information about the Digitalmars-d-learn mailing list