[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [help-cgicc] name space conflicts
From: |
Stephen F. Booth |
Subject: |
RE: [help-cgicc] name space conflicts |
Date: |
Tue, 29 Oct 2002 10:20:06 -0500 |
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: address@hidden [mailto:address@hidden On
Behalf
> Of Borries Demeler
> Sent: Monday, October 28, 2002 7:19 AM
> To: address@hidden
> 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
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cgicc