<!--/*SC*/DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"/*EC*/-->
<html><head><title></title><style type="text/css"><!-- body{padding:1ex;margin:0;font-family:sans-serif;font-size:small}a[href]{color:-moz-hyperlinktext!important;text-decoration:-moz-anchor-decoration}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em}blockquote blockquote{border-color:#006312}blockquote blockquote blockquote{border-color:#540000} --></style></head><body><div style="font-family: Verdana; font-size: medium;" dir="ltr"><div>
        Hi, I'm trying to get a "hello world" going to call a C function from <a href="http://developer.gnome.org/glib/2.34/">glib</a>. I'm having problems compiling, what would the correct command line options?</div>
<div>
         </div>
<div>
        <span style="color:#0000ff;"><span style="font-family: courier new,courier,monospace;">% dmd -I/usr/include/glib-2.0 hello.d -L-L/usr/local/lib -L-lglib-2.0<br />
        hello.d(3): Error: undefined identifier GDateTime<br />
        hello.d(3): Error: undefined identifier GTimeZone</span></span></div>
<div>
         </div>
<div>
        <span style="color:#0000ff;"><span style="font-family: courier new,courier,monospace;">% cat hello.d<br />
        import std.stdio;<br />
        extern(C) GDateTime *g_date_time_new_now (GTimeZone *tz);<br />
        void main() {<br />
          writeln("Hello, world");<br />
          GDateTime *gdt;<br />
        }</span></span><br />
         </div>
<div>
        I've got the <a href="http://dlang.org/interfaceToC.html">Interfacing to C</a> page bookmarked :-)</div>
<div>
         </div>
<div>
        Thanks for any help, Sonia.</div>
</div></body></html>