name space conflicts
Borries Demeler <[email protected]> Mon, 28 Oct 2002 06:19:16 -0600 (CST)
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
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