Linking to C
Mike Chaten
mchaten at gmail.com
Tue Nov 2 23:19:41 PDT 2010
Any options with just one dash afaik (ala -L) will pass through to dmd.
On Wed, Nov 3, 2010 at 2:07 AM, scrappylildude <sdl at yahoo.com> wrote:
> That's great--thanks Nick, Andrei.
>
> I tried it and it looks like I haven't configured something right. I'm
> building a sample
> project with my program, my utility class library and libraw. I've added
> the path to
> libraw_c_headers.d to dmd.conf, now that I don't have a -I switch any more
> (using
> rdmd).
>
> When I use rdmd, something like my original error seems to have returned:
> :(
>
> rdmd --build-only helloworld.d
>
> Undefined symbols: "_D4hecl4base8HECLBase11__InterfaceZ", referenced from:
> _D4hecl4base12__ModuleInfoZ in helloworld.d.old: symbol(s) not
> foundcollect2: ld
> returned 1 exit status
> --- errorlevel 1
>
> My project is organized as follows:
> root/
> stuff_i_made/
> my project/
> helloworld.d
> my class library/
> hecl*.d
> stuff_I_didnt_make/
> libraw/
> lib/
> libraw_r.a
> src/
> libraw_c_headers.d
>
> Using --dry-run seems to show everything except the libraw_r.a. Since I
> don't have a
> -L switch with rdmd, I assume this is the problem?
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101103/b01ce383/attachment.html>
More information about the Digitalmars-d
mailing list