回覆: Getting a GTK3 program to compile on Visua l Studio 2012
- From: Fan Chun-wei (范君維- <fanc999 yahoo com tw>
- To: Arnavion <arnavion gmail com>, "flabberghasted riseup net" <flabberghasted riseup net>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: 回覆: Getting a GTK3 program to compile on Visua l Studio 2012
- Date: Thu, 9 Jan 2014 13:36:35 +0800
Hi,
Another alternative is to use the glibconfig.h.win32 supplied in the corresponding source tarball, and replace the current glibconfig.h with it. This will save you from modifying the headers and defining the item in your project settings.
With blessings.
寄件者: Arnavion寄件日期: 2014/1/9 04:02收件者: flabberghasted riseup net副本: gtk-list gnome org主旨: 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
"__inline".
I figured this out just as a hunch, but after doing this I did find
http://lists.cairographics.org/archives/cairo/2008-January/012719.html
which talks about the same thing for cairo (with the same suggested
fix of defining inline to __inline).
-Arnav
On Wed, Jan 8, 2014 at 10:48 AM, fr33domlover <fr33domlover mailoo org> wrote:
>
> Hello,
> I've been trying to port my GTK2 program to GTK3, but I've ran into a
> problem:
> 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:
> http://stackoverflow.com/questions/20883854/compiling-a-gtk3-program-in-visual-studio-2012
>
> I noted that Codeblocks&MinGW compile the same code under the same
> configuration just fine and do not report any problems with GTK3 header
> files.
> 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: http://pastebin.com/ThZpwVmg
>
> Here's a link to the basic program I tried compiling:
> https://github.com/The-J-Person/Example-gtk3-vs2012-project
>
> Any help will be greatly appreciated!
>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]