Re: [sigc] Error compiling tests/test_lambda.cc from 2.0.3 on Tru64 UNIX 5.1



Am 20.08.2004 09:12:35 schrieb(en) Martin Schulze:
Am 19.08.2004 23:23:56 schrieb(en) Albert Chin:
I received the following error while building libsigc++-2.0.3 on Tru64
UNIX 5.1 with the Compaq C++ compiler:
  cxx  -I. -I. -I.. -I.. -I..    -O2 -readonly_strings
-timplicit_local -D__USE_STD_IOSTREAM -c -o test_lambda.o `test -f
'test_lambda.cc' || echo './'`test_lambda.cc
c  xx: Error: test_lambda.cc, line 83: a reference of type "char *&"
(not
            const-qualified) cannot be initialized with a value of
type
            "char [2]"
(sigc::ref(std::cout) << sigc::constant(1) << sigc::ref("\n")) ();
  ----------------------------------------------------------^
  cxx: Error: test_lambda.cc, line 84: a reference of type "char *&"
(not
            const-qualified) cannot be initialized with a value of
type
            "char [2]"
    (sigc::var(std::cout) << 1 << sigc::ref("\n"))();
  ------------------------------------------^
  cxx: Error: test_lambda.cc, line 93: a reference of type "char *&"
(not
            const-qualified) cannot be initialized with a value of
type
            "char [2]"
      sl1 = (sigc::var(std::cout) << sigc::ref(guest_book) <<
sigc::ref("\n"));
---------------------------------------------------------------------- ^ cxx: Info: 3 errors detected in the compilation of "test_lambda. cc".

Any ideas?

The Sun FORTE also has problems with this (though it barks at a different place). Since you have cvs access: could you just comment out the lines containing 'sigc::ref("\n")' in test_lambda.cc adding a comment that this doesn't work with the Sun FORTE C++ and the Compaq C++ compiler, please?

Done.

 Martin


Of course any new ideas how to handle constant string arrays are welcome!

Thanks,

 Martin


_______________________________________________
libsigc-list mailing list
libsigc-list gnome org
http://mail.gnome.org/mailman/listinfo/libsigc-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]