Hmm, tried again using a different sample (http://developer.gnome.org/gtkmm-tutorial/2.24/sec-basics-simple-example.html.en) and the different property sheet you mentioned on a new project, console app [with precompiled header].
Here is my output: 1>------ Build started: Project:sample Configuration: Debug Win32 ------ 1>Build started 10/16/2011 2:56:07 PM. 1>InitializeBuildStatus: 1> Creating "Debug\sample.unsuccessfulbuild" because "AlwaysCreate" was specified. 1>ClCompile: 1> stdafx.cpp 1> sample.cpp 1>c:\libraries\gtkmm\include\gtkmm-2.4\gtkmm\papersize.h(291): warning C4099: 'Gtk::PaperSizeTraits' : type name first seen using 'class' now seen using 'struct' 1> c:\libraries\gtkmm\include\gtkmm-2.4\gtkmm\papersize.h(35) : see declaration of 'Gtk::PaperSizeTraits' 1>LinkEmbedManifest: 1>FinalizeBuildStatus: 1> Deleting file "Debug\sample.unsuccessfulbuild". 1> Touching "Debug\sample.lastbuildstate". 1> 1>Build succeeded. 1> 1>Time Elapsed 00:01:02.01 ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== o.O! - It worked! I must've chosen the wrong property sheet before or something like that... Well, thanks! =] 2011/10/16 alexander timoshenko <[email protected]>: > How to setup GTKmm in Visual Studio 2010? > > Create a empty console app. -> Project Properties page of your MSVS -IDE > right click Adding an Existing Property Sheet -> choose the one in your > gtkmm path > > realese/debug _be sure you pick the right one the -d-2_4 is for debug, > ->"#include <gtkmm.h> &&& something simple in the -" main.cpp-> Control +F5 > > to avoid the console window on startup ->Windows (/SUBSYSTEM:WINDOWS) and as > entry point type -> mainCRTStartup > > that is the answer for your question ...or if im wrong ? > > > a. timoshenko > > > > > >> Date: Sun, 16 Oct 2011 04:59:12 +1100 >> Subject: Re: Re: How to setup GTKmm in Visual Studio 2010? >> From: [email protected] >> To: [email protected] >> CC: [email protected] >> >> I set all the search directory stuff to C:\libraries\gtkmm >> >> C:\libraries>tree2 gtkmm gtkmm64 -L 1 >> gtkmm >> |-- MSVC >> |-- bin >> |-- etc >> |-- gtkmm-demo >> |-- gtkmm-uninst.exe >> |-- gtkmm.ico >> |-- gtkmm.url >> |-- gtkmm_win32.txt >> |-- include >> |-- lgpl.txt >> |-- lib >> |-- redist >> `-- share >> gtkmm64 >> |-- MSVC >> |-- bin >> |-- etc >> |-- gtkmm-demo >> |-- gtkmm-uninst.exe >> |-- gtkmm.ico >> |-- gtkmm.url >> |-- gtkmm_win32.txt >> |-- include >> |-- lgpl.txt >> |-- lib >> |-- redist >> `-- share >> >> 16 directories, 10 files >> >> What should I try next? >> >> Thanks for all suggestions, >> >> Alec Taylor >> >> On Sun, Oct 16, 2011 at 4:45 AM, <[email protected]> wrote: >> > The backticks are used to make a unix shell run the command, and output >> > the >> > result into the next command. >> > You rightfully guess you don't need those. >> > >> > Leads on to "no such file or dir" errors, you've installed the 64 bit >> > gtkmm? >> > Or 32 bit? >> > You link the windows32 file, but mention that gtkmm64 is installed >> > beside >> > it, perhaps something is going wrong there... >> > >> > -Harry >> > >> > PS: Following this thread so I can try it myself in a while... I'm not >> > compiling GTKmm on windows at all ATM >> > >> > On , Alec Taylor <[email protected]> wrote: >> >> Removing the '`' characters gave me a different error log: >> >> >> >> >> >> >> >> mingw32-gcc.exe: gtkmm-2.4: No such file or directory >> >> >> >> mingw32-gcc.exe: gtkmm-2.4: No such file or directory >> >> >> >> Process terminated with status 1 (0 minutes, 0 seconds) >> >> >> >> 0 errors, 0 warnings >> >> >> >> >> >> >> >> On Sun, Oct 16, 2011 at 4:24 AM, Alec Taylor [email protected]> >> >> wrote: >> >> >> >> > I'm getting an error: >> >> >> >> > C:\libraries\gtkmm\include\glibmm-2.4\glibmm\refptr.h|24|error: >> >> >> >> > expected '=', ',', ';', 'asm' or '__attribute__' before 'Glib'| >> >> >> >> > C:\libraries\gtkmm\include\glibmm-2.4\glibmm\unicode.h|30|fatal >> >> > error: >> >> >> >> > cctype: No such file or directory| >> >> >> >> > ||=== Build finished: 2 errors, 0 warnings ===| >> >> >> >> > >> >> >> >> > (Note that gtkmm was the location >> >> >> >> > >> >> > >> >> > http://ftp.gnome.org/pub/GNOME/binaries/win32/gtkmm/2.22/gtkmm-win32-devel-2.22.0-2.exe >> >> >> >> > was installed, gtkmm64 is in the gtkmm64, on the same dir level as >> >> >> >> > gtkmm) >> >> >> >> > >> >> >> >> > I've set everything to use MinGW g++ (4.5.2), and set all the things >> >> >> >> > you mentioned [to the letter]. >> >> >> >> > >> >> >> >> > How can I get this to work? >> >> >> >> > >> >> >> >> > Thanks for all suggestions, >> >> >> >> > >> >> >> >> > Alec Taylor >> >> >> >> > >> >> >> >> > On Sun, Oct 16, 2011 at 2:31 AM, lecas malecas [email protected]> >> >> > wrote: >> >> >> >> >> By the way, you're looking into the gtkmm3 tutorials, but for >> >> >> windows >> >> >> >> >> there's only the previous version at the moment. >> >> >> >> >> >> >> >> >> >> On Sat, Oct 15, 2011 at 4:29 PM, lecas malecas [email protected]> >> >> >> wrote: >> >> >> >> >>> In code blocks: >> >> >> >> >>> >> >> >> >> >>> go project -> build options >> >> >> >> >>> >> >> >> >> >>> on compiler settings -> other options write: >> >> >> >> >>> >> >> >> >> >>> `pkg-config --cflags gtkmm-2.4 --libs gtkmm-2.4` >> >> >> >> >>> >> >> >> >> >>> and write the same in linker settings -> other linker options >> >> >> >> >>> >> >> >> >> >>> Then on search directories in both the compiler and linker tab, add >> >> >> >> >>> the directory where you installed gtkmm. >> >> >> >> >>> >> >> >> >> >>> (for example, in my case c:\gtkmm) >> >> >> >> >>> >> >> >> >> >>> That's it. >> >> >> >> >>> >> >> >> >> >>> On Sat, Oct 15, 2011 at 6:33 AM, Alec Taylor >> >> >>> [email protected]> >> >> >>> wrote: >> >> >> >> >>>> Good afternoon, >> >> >> >> >>>> >> >> >> >> >>>> How do I setup GTK-- in Visual Studio 2010? >> >> >> >> >>>> >> >> >> >> >>>> This guide didn't work: >> >> >>>> http://live.gnome.org/gtkmm/MSWindows/UsingMSVC >> >> >> >> >>>> >> >> >> >> >>>> Not even when I used the new example: >> >> >> >> >>>> >> >> >>>> >> >> >>>> http://developer.gnome.org/gtkmm-tutorial/unstable/sec-helloworld.html.en >> >> >> >> >>>> >> >> >> >> >>>> I installed GTKmm using >> >> >> >> >>>> >> >> >>>> >> >> >>>> http://ftp.gnome.org/pub/GNOME/binaries/win64/gtkmm/2.22/gtkmm-win64-devel-2.22.0-2.exe >> >> >> >> >>>> >> >> >> >> >>>> I even tried extracting this: >> >> >> >> >>>> >> >> >>>> >> >> >>>> http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.34/libxml++-2.34.2.tar.bz2 >> >> >> >> >>>> to the same directory... to no avail >> >> >> >> >>>> >> >> >> >> >>>> Please help me get GTK-- compiled and working in Visual Studio >> >> >>>> 2010. >> >> >> >> >>>> >> >> >> >> >>>> Thanks for all suggestions, >> >> >> >> >>>> >> >> >> >> >>>> Alec Taylor >> >> >> >> >>>> >> >> >> >> >>>> PS: I'm happy to use Code::Blocks instead, if you can show me how >> >> >> >> >>>> _______________________________________________ >> >> >> >> >>>> gtkmm-list mailing list >> >> >> >> >>>> [email protected] >> >> >> >> >>>> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> >> >> >> >>>> >> >> >> >> >>> >> >> >> >> >> >> >> >> >> > >> >> >> >> _______________________________________________ >> >> >> >> gtkmm-list mailing list >> >> >> >> [email protected] >> >> >> >> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> >> >> _______________________________________________ >> gtkmm-list mailing list >> [email protected] >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
