D not able to link .o files

Tim Healey leikeze at gmail.com
Mon Feb 25 08:43:18 PST 2008


meldolion wrote:
> I tried to include a external c function created by MinGW in a D source.
> 
> so I got a helloworld.o file
> 
> when i want to compile my main.d module with following command:
> 
> dmd main.d helloworld.o 
> I get the error
> Error: unrecognized file extension o
> 
> How can I solve that problem
> 
> thx for help
> meldolion

Different compilers use different object formats. It would probably be
easier to either compile the C program with Digital Mars C and continue
using DMD or compile the D program with GDC and continue using MinGW.



More information about the Digitalmars-d mailing list