Re: gimp-vs: gdk headers missing extern "C"



Robert Pearce <rob bdt-home demon co uk> wrote:

> Yes, this wrapping is normally done in the headers,
> [...] wrapped in magic  G_BEGIN_DECLS [/G_END_DECLS]
>
> Is it possible VC9 is not declaring the necessary symbol?

No, the other libs work as expected.

I checked the headers, and it seems most gdk headers have
G_BEGIN_DECLS in them, but "gdkenumtypes.h" looks like
this:

/* Generated by makeenums.pl */

#ifndef __GDK_ENUM_TYPES_H__
#define __GDK_ENUM_TYPES_H__

GType gdk_cursor_type_get_type (void);
#define GDK_TYPE_CURSOR_TYPE gdk_cursor_type_get_type ()

..the other type getters follow...

I don't know if this file is specific to vs-gimp, but I figure
makeenums.pl should be tuned to insert G_BEGIN_DECLS
and G_END_DECLS. This may also apply to makegdkalias.pl
and other perls in the makery.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]