How are you compiling & linking the files? I've gotten this error before when I forgot to include a file in my compilation (in your case libraw_c_headers)<br><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 8:47 PM, scrappylildude <span dir="ltr"><<a href="mailto:sdl@yahoo.com">sdl@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
New to D, but I am loving it so far.<br>
<br>
I am having some trouble linking to a C library static library (LibRaw 0.10.0).  I ran htod on the LibRaw<br>
header files, and fixed up the resulting file by hand.<br>
<br>
Now when I compile and attempt to link, I get one error:<br>
<br>
Undefined symbols:<br>
  "_D16libraw_c_headers12__ModuleInfoZ", referenced from:<br>
      _D10helloworld12__ModuleInfoZ in helloworld.o<br>
ld: symbol(s) not found<br>
collect2: ld returned 1 exit status<br>
--- errorlevel 1<br>
<br>
Obviously I don't have any identifiers by these names.  I wrote a simple library which printf's "Hello<br>
World" and linked to it without problems.  So I thought the problem might be due to name mangling<br>
incompatibilities, so I recompiled libraw under gcc4.2 and llvm-gcc and got the same issue both times.<br>
<br>
Can anyone provide a clue?  I know the linker can't resolve the above, but I have no idea how to go<br>
about fixing it.<br>
<br>
Environment: Mac OS X 10.6.4, DMD v2.049.<br>
</blockquote></div><br>