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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 6 15:30:01 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5468


Brad Roberts <braddr at puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |braddr at puremagic.com
         Resolution|                            |INVALID


--- Comment #1 from Brad Roberts <braddr at puremagic.com> 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: -------


More information about the Digitalmars-d-bugs mailing list