using pragma to link to gcc-compiled c library

Felix Klein coogabooga at hotmail.com
Tue Jun 5 18:42:20 PDT 2012


>> void
>> main()
>> {
>> 
>>   extern (C) int addem (int, int);
>
> Move the proto out of main() into the module scope - as is,
> it's treated as a nested function and gets its name mangled.
>
> artur

that was exactly the right thing to do!  thanks for your prompt 
help.

-fk



More information about the Digitalmars-d-learn mailing list