This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem using STL (set)


Hello,

I'm having a problem compiling a file under Linux (Suse 6.2) which compiles
fine with MS's VC++. Here's the output which I can't interpret:

------------------------------------------------------------------
g++ -O2 -march=pentium -pipe -s -c test.cpp
In file included from /usr/include/g++/stl_tree.h:59,
                 from /usr/include/g++/set:31,
                 from test.cpp:10:
/usr/include/g++/stl_function.h:79: `template <class T> struct negate'
redeclared as different kind of symbol
/usr/include/g++/stl_function.h:79: sorry, not implemented: `overload' not
supported by dump_decl
Pİc°¸c
:79: previous declaration of `'
make: *** [test.o] Error 1
------------------------------------------------------------------

Thanks in advance.

Kind regards,

Alexander Holler


------------------------------------------------------------------
g++ -dumpversion:
egcs-2.91.66

g++ -dumpmachine:
i486-linux

g++ -dumpspecs:
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}

*asm_final:
%|

*cpp:
%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}
%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}

*cc1:
%(cc1_cpu) %{profile:-p}

*cc1plus:


*endfile:
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s

*link:
-m elf_i386 %{shared:-shared}   %{!shared:     %{!ibcs:       %{!static:
%{rdynamic:-export-dynamic} 	%{!dynamic-linker:-dynamic-linker
/lib/ld-linux.so.2}} 	%{static:-static}}}

*lib:
-warn-common %{shared: -lc --version-script libgcc.map%s}    %{!shared:
%{mieee-fp:-lieee} %{pthread:-lpthread} 	%{profile:-lc_p} %{!profile: -lc}}

*libgcc:
-lgcc

*startfile:
%{!shared:      %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s}
%{!p:%{profile:gcrt1.o%s} 			 %{!profile:crt1.o%s}}}}    crti.o%s
%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}

*switches_need_spaces:


*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}

*predefines:
-D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -Asystem(posix)

*cross_compile:
0

*version:
egcs-2.91.66

*multilib:
. ;

*multilib_defaults:


*multilib_extra:


*multilib_matches:


*linker:
collect2

*cpp_cpu_default:
-D__tune_i486__

*cpp_cpu:
-Asystem(unix) -Acpu(i386) -Amachine(i386)
%{!ansi:-Di386} -D__i386 -D__i386__ %{march=i486:-D__i486 -D__i486__}
%{march=pentium|march=i586:-D__pentium -D__pentium__}
%{march=pentiumpro|march=i686:-D__pentiumpro -D__pentiumpro__}
%{m386|mcpu=i386:-D__tune_i386__} %{m486|mcpu=i486:-D__tune_i486__}
%{mpentium|mcpu=pentium|mcpu=i586:-D__tune_pentium__}
%{mpentiumpro|mcpu=pentiumpro|mcpu=i686:-D__tune_pentiumpro__}
%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}

*cc1_cpu:
%{!mcpu*: %{m386:-mcpu=i386} %{mno-486:-mcpu=i386 -march=i386}
%{m486:-mcpu=i486} %{mno-386:-mcpu=i486 -march=i486}
%{mno-pentium:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium}
%{mno-pentiumpro:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}}

*link_command:
%{!fsyntax-only:  %{!c:%{!M:%{!MM:%{!E:%{!S:%(linker) %l %X %{o*} %{A} %{d}
%{e*} %{m} %{N} %{n} 			%{r} %{s} %{t} %{u*} %{x} %{z} %{Z}
%{!A:%{!nostdlib:%{!nostartfiles:%S}}}			%{static:} %{L*} %D %o
%{!nostdlib:%{!nodefaultlibs:%G %L %G}}
%{!A:%{!nostdlib:%{!nostartfiles:%E}}}			%{T*}
 }}}}}}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]