I see, it is not as easy as the tutorial explains 
(https://live.gnome.org/gtkmm/MSWindows/UsingMSVC )
Is there any other tutorial that you are aware of, I would like to knwo in more 
detail how to make gtkmm work with VSE10. Better yet if you can provide me with 
a little bit of data that would show me how it is done, that would be very nice.
Thanks
----- Original Message -----
From: Dos Santos, Oliveira
Sent: 02/13/13 04:09 AM
To: 'Doesnt Stop', Gavin Lambert
Subject: RE: VSE10 and GTKmm 2.22

Hi,
I’m not sure if it’s the case in your application, but to build successfully a 
Gtk or Gtkmm application under MSVC and then run it perfectly, you need to 
bypass the main function of your application and redirect it to the WinAPI. In 
plus, you need to add Imm32.lib and msvcrt.lib as additional dependencies.
Regards 
Marco Dos Santos Oliveira
EBU/European Broadcasting Union
Technology and Innovation Department

From: gtkmm-list [mailto:[email protected]]  *On Behalf Of *Doesnt 
Stop
 *Sent:* mercredi 13 février 2013 03:31
 *To:* Gavin Lambert; Doesnt Stop
 *Cc:* Gtkmm List
 *Subject:* RE: VSE10 and GTKmm 2.22
Yes, indeed, and the new incarnation of that template function already looks 
exactly like yours.
Howerver, that does not explain why adding the gtkmm property sheet would cause 
std::streamstring to crash.
I am now testing the library using GNU and Code::Blocks, but still, as soon as 
I add the gtkmm library, I get other errors.
---
from [drive:]\dev\C++\MyApp\main.cpp:81:
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:34:45: error: 'stream' was not 
declared in this scope
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:35:23: error: expected 
primary-expression before '*' token
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:35:24: error: 'str' was not 
declared in this scope
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:35:27: error: expression list 
treated as compound expression in initializer [-fpermissive]
---
The settings->Compiler->Other Options are:
gtkmm-2.4 --cflagas
~~~~~~~~~~~~~~~~~~~
-mms-bitfields -Id:/gtkmm/include/gtkmm-2.4 -Id:/gtkmm/lib/gtkmm-2.4/include 
-Id:/gtkmm/include/atkmm-1.6 -Id:/gtkmm/include/giomm-2.4 
-Id:/gtkmm/lib/giomm-2.4/include -Id:/gtkmm/include/pangomm-1.4 
-Id:/gtkmm/lib/pangomm-1.4/include -Id:/gtkmm/include/gtk-2.0 
-Id:/gtkmm/include/gdkmm-2.4 -Id:/gtkmm/lib/gdkmm-2.4/include 
-Id:/gtkmm/include/atk-1.0 -Id:/gtkmm/include/glibmm-2.4 
-Id:/gtkmm/lib/glibmm-2.4/include -Id:/gtkmm/include/glib-2.0 
-Id:/gtkmm/lib/glib-2.0/include -Id:/gtkmm/include/sigc++-2.0 
-Id:/gtkmm/lib/sigc++-2.0/include -Id:/gtkmm/include/cairomm-1.0 
-Id:/gtkmm/lib/cairomm-1.0/include -Id:/gtkmm/include/pango-1.0 
-Id:/gtkmm/include/cairo -Id:/gtkmm/include -Id:/gtkmm/include/freetype2 
-Id:/gtkmm/include/libpng14 -Id:/gtkmm/lib/gtk-2.0/include 
-Id:/gtkmm/include/gdk-pixbuf-2.0
and for the linker are:
gtkmm-2.4 --libs
~~~~~~~~~~~~~~~~
-Ld:/gtkmm/lib -Lc:/devel/dist/win32/libpng-1.4.3-1/lib -lgtkmm-2.4 -latkmm-1.6 
-lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-win32-2.0 -lglibmm-2.4 
-lcairomm-1.0 -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lpangowin32-1.0 
-lgdi32 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpng14 -lpango-1.0 -lcairo 
-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl 
I feel like I am against the wall here, the errors are from the gtkmm libary 
and there is very little I can do about it.
Any suggestions?
----- Original Message -----
From: Gavin Lambert
Sent: 02/12/13 04:53 PM
To: 'Doesnt Stop'
Subject: RE: VSE10 and GTKmm 2.22

There are indeed several problems with the code, not the least of which is that 
you are returning a reference to a stack-created temporary object, which is 
extremely likely to explode in your face at some point.
This would be a more correct version of the function:
template<typename T>
std::string toString(const T& data)
{
 std::ostringstream num;
 num << data;
 return num.str();
}

From: gtkmm-list [ [email protected] ]  *On Behalf Of *Doesnt Stop
 *Sent:* Wednesday, 13 February 2013 10:27
 *To:* Gtkmm List
 *Subject:* VSE10 and GTKmm 2.22
There is no problem with the code.
#include <iostream>
1. template< typename T>
2. std::string& toString(const T& data){
3. std::stringstream num(std::stringstream::out);
4. num << data;
5. return run.c_str();
6. }
However, an error is triggered by line 3. This error started happening as soon 
as I
added the GTKmm property sheet. If I remove the property sheet from the 
project, then
the applicatin compiles without any problem.
So, the problem is the gtkmm and not VC++ or the IDE in my Win7.
Is there anyone here having the same problem?
-----------------------------------------------------------------
 ***************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the system manager. 
This footnote also confirms that this email message has been swept by the 
mailgateway
************************************************** *
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to