Re: Getting a GTK3 program to compile on Visual Studio 2012

(Forgot to reply-all.)

In gutils.h lines 82 and 122, and in gstring.h line 129, change
"static inline" to "static __inline". Alternatively add a
PreprocessorDefinition to the project file to define "inline" as

I figured this out just as a hunch, but after doing this I did find
which talks about the same thing for cairo (with the same suggested
fix of defining inline to __inline).


On Wed, Jan 8, 2014 at 10:48 AM, fr33domlover <fr33domlover mailoo org> wrote:

I've been trying to port my GTK2 program to GTK3, but I've ran into a
Visual Studio 2012, which handles GTK2 just fine, claims some glib header
files have syntax errors.

I've posted a question on Stack Overflow here:

I noted that Codeblocks&MinGW compile the same code under the same
configuration just fine and do not report any problems with GTK3 header
However, I need the program to work with VS2012 specifically.

Here's a link to the compilation errors I get when trying to compile a
basic gtk3 program with VS2012:

Here's a link to the basic program I tried compiling:

Any help will be greatly appreciated!

gtk-list mailing list
gtk-list gnome org

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