Date: Thu, 11 Sep 2003 13:13:03 -0400 From: Guy Middleton <guy@obstruction.com> To: ports@FreeBSD.org Subject: stlport warning: "__WORD_BIT" redefined Message-ID: <20030911171303.GA73207@chaos.obstruction.com>
next in thread | raw e-mail | index | archive | help
I have stlport-gcc-4.5.3_1 installed on a 5.1-RELEASE system, with gcc 3.2.2. Compiling this program generates the following warning: #include <vector> int main() { std::vector<int> iv; return 0; } $ c++ -O -pipe -march=pentium3 -Wall -I/usr/local/include/stlport -D_STLP_DEBUG -L/usr/local/lib -lstlport_gcc_stldebug vector.cc -o vector In file included from /usr/local/include/stlport/stl/_vector.h:575, from /usr/local/include/stlport/vector:36, from vector.cc:1: /usr/local/include/stlport/stl/_bvector.h:37:1: warning: "__WORD_BIT" redefined In file included from /usr/include/sys/limits.h:40, from /usr/include/limits.h:128, from /usr/include/g++/climits:49, from /usr/local/include/stlport/climits:27, from /usr/local/include/stlport/stl/_algobase.h:43, from /usr/local/include/stlport/vector:32, from vector.cc:1: /usr/include/machine/_limits.h:99:1: warning: this is the location of the previous definition The warning is correct, __WORD_BIT is defined in the system _limits.h and is redefined by STL. It seems the addition of __WORD_BIT to _limits.h is new; I could not find it in limits.h on a 4.6-RELEASE system.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030911171303.GA73207>