Re: [gtkmm] Should a C++/STL library conflict with gtkmm?



> Murray Cumming Comneon com wrote: 
>
> > From: SilvioCVdeAlmeida [mailto:scvalmei graaph arq br]
> > The question is: in theory, it is possible to mix,
> > in a standard way, a C++/STL library with a gtkmm
> > GUI?
> 
> Yes, of course.

Well, I'll try to be more specifc:

My system is GNU-Linux from redhat (version 6.2)
with defaults
     egcs-2.91.66
     glibc-2.1.3-15
     libstdc++-2.9.0-30
I'm using the headers-only implementation,
installed at /usr/local/include/STL, of
     SGI's STL-3.3 ()
and in-house compiled
     gtkmm-1.2.10

When I compile a glade-produced gtkmm
program using my (correct for C++-only
programs) C++ library, I get many 'XXX'
errors, with many 'YYY' lines each:

XXX clist1_glade.o: In function
 "__Named_exception::~__Named_exception(void)":

YYY /usr/local/include/STL/string(.text+0x212):
     undefined reference to
     "Gtk::CList::set_column_title(int,
      basic_string<char,
                   char_traits<char>,
                   allocator<char>
                  > const &)"


Is there something special regarding
namespaces that should be done?

Is it a problem to compile gtkmm files
into objects with -I/usr/local/include/STL
before final link?

If so, what could I do if that switch is
needed always when using my lib?



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