Mantis - gtkmm2
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2096 | regular use | major | always | 2007-01-03 11:13 | 2007-08-07 19:27 |
|
|||||
Reporter: | cquike | Platform: | |||
Assigned To: | komadori | OS: | |||
Priority: | normal | OS Version: | |||
Status: | assigned | Product Version: | |||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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 |
||||
Steps To Reproduce: | |||||
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 |
||||
Relationships | |||||
Attached Files: | |||||
|
|||||
Issue History | |||||
Date Modified | Username | Field | Change |
Notes | |||||
|
|||||
|
|