Anonymous | Login | 2024-04-23 17:28 CEST |
Main | My View | View Issues |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0002096 | [gtkmm2] regular use | major | always | 2007-01-03 11:13 | 2007-08-07 19:27 | |||||||
Reporter | cquike | View Status | public | |||||||||
Assigned To | komadori | |||||||||||
Priority | normal | Resolution | open | |||||||||
Status | assigned | |||||||||||
Summary | 0002096: failed to compile with g++ | |||||||||||
Description |
g++ fails to compile a test program that simply includes the file glibmm/ustring.h: cat test.h #include <glibmm/ustring.h> the command line used to compile is: g++ -I/opt/csw/include/gtkmm-2.0 -I/opt/csw/lib/gtkmm-2.0/include -I/opt/csw/lib/sigc++-1.2/include -I/opt/csw/include/sigc++-1.2 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -L/opt/csw/lib -lglibmm-2.0 -lgobject-2.0 -lsigc-1.2 -lglib-2.0 -lintl test.h It seems that the problem is that the file /opt/csw/lib/gtkmm-2.0/include/glibmmconfig.h defines GTKMM_HAVE_SUN_REVERSE_ITERATOR, which may be true for Sun Studio compiler but not for the GNU gcc compiler. In fact, it compiles porperly with Sun Studio. ¿Is it possible to ship a glibmmconfig.h that will work both with Sun Studio and GNU g++ compilers? Thank you very much in advance |
|||||||||||
Additional Information |
/opt/csw/include/gtkmm-2.0/glibmm/ustring.h:224: error: wrong number of template arguments (6, should be 1) /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_iterator.h:91: error: provided for `template<class _Iterator> class std::reverse_iterator\' /opt/csw/include/gtkmm-2.0/glibmm/ustring.h:224: error: ISO C++ forbids declaration of `reverse_iterator\' with no type /opt/csw/include/gtkmm-2.0/glibmm/ustring.h:230: error: wrong number of template arguments (6, should be 1) /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_iterator.h:91: error: provided for `template<class _Iterator> class std::reverse_iterator\' /opt/csw/include/gtkmm-2.0/glibmm/ustring.h:230: error: ISO C++ forbids declaration of `const_reverse_iterator\' with no type |
|||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
|
Notes | |
(0004288) kenmays (reporter) 2007-01-06 11:42 |
You may have run into a G++ incompatibility with a C++-based lib compiled with the Sun Studio C++ compiler. |
Copyright © 2000 - 2008 Mantis Group |