Problems linking C and D code

Jan Stępień name at surname.cc
Sat Oct 24 06:02:40 PDT 2009


Hi all,

I've got a problem with linking two object files on Windows with an
external *.lib file. First one is compiled C code, second one is in D.
I'm using D2.

  $ dmc -c first.c -I path/to/SDL/include
  $ dmd -c second.d

First two commands create two *.obj file. After running

  $ dmd first.obj second.obj path/to/SDL.lib -ofout.exe

no "out.exe" file is created but the command returns 0. An "out.map"
file is created, though. Where am I doing something wrong?

Cheers,
-- 
Jan Stępień


More information about the Digitalmars-d-learn mailing list