[sigc] Re: [gtkmm] Problems compiling libsigc++-2.0.3 on Slackware



Am 03.08.2004 10:10:11 schrieb(en) Juergen Rose:
Hallo Martin,

On Tue, 2004-08-03 at 09:35 +0200, Martin Schulze wrote:
...
> I have no clue, whatsoever. It doesn't really seem to be a libsigc+ +

> specific problem. Can you try to compile a simple test program, say,
e.
> g.:
>
> struct foo {
>   int m;
> };
>
> struct bar {
>   typedef std::list<foo> foo_list_type;
>   foo_list_type foo_list;
> };
>
> int main() {
>   bar my_bar;
>   return 0;
> }

Woops, sorry - I thaught you were familier with the stl library.
Obviously, you didn't '#include <list>' ?!

Regards,

 Martin

I wrote libsigc++_test.cc with the contents you suggested. Then I
got:

mousehomenet:/root(87)#g++ -v libsigc++_test.cc
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable- threads
Thread model: posix
gcc version 3.3.4
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/cc1plus -quiet -v
-D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=4 -D_GNU_SOURCE libsigc+
+_test.cc -D__GNUG__=3 -quiet -dumpbase libsigc++_test.cc -auxbase
libsigc++_test -version -o /tmp/cchIvmtU.s
GNU C++ version 3.3.4 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-
heapsize=131072
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/lib/qt/include
 /usr/include/c++/3.3.4
 /usr/include/c++/3.3.4/i686-pc-linux-gnu
 /usr/include/c++/3.3.4/backward
 /usr/local/include
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include
 /usr/i686-pc-linux-gnu/include
 /usr/include
End of search list.
libsigc++_test.cc:6: error: ISO C++ forbids declaration of `list' with
no type
libsigc++_test.cc:6: error: template-id `list<foo>' used as a
declarator
libsigc++_test.cc:6: error: parse error before `;' token
libsigc++_test.cc:7: error: 'foo_list_type' is used as a type, but is
not
   defined as a type.

I appreciate your help.
	Regards Juergen






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