hello world with glib
Mike Parker
aldacron at gmail.com
Tue Dec 18 11:23:42 PST 2012
On Tuesday, 18 December 2012 at 19:21:09 UTC, Mike Parker wrote:
> On Tuesday, 18 December 2012 at 18:24:03 UTC, Sonia Hamilton
> wrote:
>
>> [1]glib. I'm having problems compiling, what would the correct
>> command
>> line options?
>>
>> % dmd -I/usr/include/glib-2.0 hello.d -L-L/usr/local/lib
>> -L-lglib-2.0
>> hello.d(3): Error: undefined identifier GDateTime
>> hello.d(3): Error: undefined identifier GTimeZone
>
> Your problem isn't the command line options, but that you're
> missing definitions of GDateTime and GTimeZone. You'll need to
> define those somewhere, perhaps the top of your file here for
> testing, so that D can know what they are.
I just took a look at the GLib docs and see that both of these
are opaque structs, so this should do it for you:
struct GDateTime;
struct GTimeZone;
More information about the Digitalmars-d-learn
mailing list