Call C function - Access violation

TheDGuy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 3 13:37:00 PST 2016


On Sunday, 3 January 2016 at 21:20:35 UTC, anonymous wrote:
> On 03.01.2016 21:32, TheDGuy wrote:
>> If i type:
>> gcc -c -otest.c.o
>>
>> the 'test.c.o' file is generated but if i type:
>>
>> dmd main.d test.c.o i get: 'Error: unrecognized file extension 
>> o'?
>
> You're probably on Windows then? dmd doesn't recognize the .o 
> extension on Windows, use .obj instead.

If i rename "test.o" to "test.obj" i get:

'Error: Module or Dictionary corrupt'



More information about the Digitalmars-d-learn mailing list