RE: name space conflicts
"Stephen F. Booth" <[email protected]> Tue, 29 Oct 2002 10:20:06 -0500
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <000001c27f5e$ada6ac30$b1d1be3f@hades> |
I can't remember whether in gcc-2.95 the std namespace was fully honored. I remember seeing errors like this before when I would use a namespace member without explicitly qualifying it. In the stl_map.h header file is map declared in the global namespace or in the std namespace? If it's in the global you might need to upgrade the gcc-3.2. If not, I'll keep thinking. -Stephen > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Borries Demeler > Sent: Monday, October 28, 2002 7:19 AM > To: [email protected] > Subject: [help-cgicc] name space conflicts > > I am having difficulties compiling a cgicc application under gcc-2.95.3: > > In file included from /usr/lib/gcc-lib/i386-slackware- > linux/2.95.3/../../../../include/g++-3/map:33, > from /usr/lib/qt/include/qmap.h:50, > from /usr/lib/qt/include/qmime.h:43, > from /usr/lib/qt/include/qevent.h:45, > from /usr/lib/qt/include/qobject.h:45, > from /usr/lib/qt/include/qwidget.h:43, > from /usr/lib/qt/include/qdialog.h:42, > from /usr/lib/qt/include/qmessagebox.h:42, > from us_6.0-register.cpp:46: > /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/../../../../include/g++- > 3/stl_map.h:61: use of `map' is ambiguous > /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/../../../../include/g++- > 3/stl_map.h:48: first declared as `template <class _Key, class _Tp, class > _Compare = struct less<_Key>, class _Alloc = class allocator<_T2> > class > map<_Key,_Tp,_Compare,_Alloc>' here > /usr/include/cgicc/HTMLClasses.h:183: also declared as `typedef class > cgicc::HTMLBooleanElement<cgicc::mapTag> cgicc::map' here > /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/../../../../include/g++- > 3/stl_map.h:61: non-template type `map' used as a template > /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/../../../../include/g++- > 3/stl_map.h:61: confused by earlier errors, bailing out > cpp0: output pipe has been closed > > My application uses both qt and cgicc, and apparently there is a namespace > conflict between stl map and cgicc map. Can someone suggest a solution > to this problem? > > Thanks -Borries > > > _______________________________________________ > help-cgicc mailing list > [email protected] > http://mail.gnu.org/mailman/listinfo/help-cgicc