GNOME Bugzilla – Bug 536184
gtkmm example doesn't build with gcc 4.3
Last modified: 2008-07-29 13:44:06 UTC
The example custom_widget doesn't build.
Created attachment 111931 [details] [review] fix build gcc 4.3 is picky, add the missing include.
Created attachment 111937 [details] [review] fix remaining missing includes
I wonder, should this be cstring instead of string.h?
Created attachment 115492 [details] [review] Patch to fix build failure on gcc 4.3 More examples in gtkmm-documentation fails to build upon gcc 4.3. Patch against svn trunk attached. Though using <cstring> header, I wonder if we should add "using std::memset;" or something similar as well since IIRC someone reported that on solaris compiler the string functions are not in the global namespace, though the standard allows that and gcc does so. Not in this patch yet.
Thanks. Committed. > I wonder if we should add "using std::memset;" or something similar as well > since IIRC someone reported that on solaris compiler the string functions are > not in the global namespace I think we should wait for the solaris people to complain about that. It would complicate the example code.