[Issue 5468] Linker fails to link libraries using phobos2 with C code

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5468

Andrei Alexandrescu  changed:

   What|Removed |Added

  Component|Optlink |tools

--


[Issue 5468] Linker fails to link libraries using phobos2 with C code

2011-02-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5468


Brad Roberts  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bra...@puremagic.com
 Resolution||INVALID


--- Comment #1 from Brad Roberts  2011-02-06 15:27:37 PST 
---
You need to link against the phobos library as well, something like:

dmd -c -lib dpart.d
dmc cpart.c dpart.lib phobos.lib


Alternatively, use dmd for the last step, something like:

dmd -c -lib dpart.d
dmc -c cpart.c
dmd cpart.o dpart.lib

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---