[th] libstdc++-4.2.0 vs mysql-gui-tools
Szymon Siwek
sls w poczta.wp.pl
Pią, 24 Lis 2006, 22:00:54 CET
Witam!
Próbuję zbudować mysql-gui-tools za pomocą gcc-4.2.0. I dostaję coś
takiego:
i686-pld-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../include -I../../../library/utilities/shared_include -I../../../library/utilities/include -I../../../library/sql-parser/include -I/usr/include/mysql -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-2 -g2 -fomit-frame-pointer -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -MT myx_query.lo -MD -MP -MF .deps/myx_query.Tpo -c myx_query.cpp -fPIC -DPIC -o .libs/myx_query.o
In file included from /usr/include/c++/4.2.0/ext/type_traits.h:38,
from /usr/include/c++/4.2.0/bits/stl_algobase.h:73,
from /usr/include/c++/4.2.0/bits/char_traits.h:46,
from /usr/include/c++/4.2.0/string:46,
from ../include/myx_query.h:22,
from myx_query.cpp:21:
/usr/include/c++/4.2.0/limits:290:22: error: macro "min" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.0/limits:292:22: error: macro "max" requires 2 arguments, but only 1 given
[ + kilkanaście takich dwulinijek ]
In file included from myx_query.cpp:21:
../include/myx_query.h:72:8: warning: extra tokens at end of #endif directive
In file included from /usr/include/c++/4.2.0/ext/type_traits.h:38,
from /usr/include/c++/4.2.0/bits/stl_algobase.h:73,
from /usr/include/c++/4.2.0/bits/char_traits.h:46,
from /usr/include/c++/4.2.0/string:46,
from ../include/myx_query.h:22,
from myx_query.cpp:21:
/usr/include/c++/4.2.0/limits:290: error: expected ';' before 'throw'
/usr/include/c++/4.2.0/limits:292: error: expected `;' before 'static'
[ + kilkanaście takich dwulinijek ]
In file included from /usr/include/c++/4.2.0/string:47,
from ../include/myx_query.h:22,
from myx_query.cpp:21:
/usr/include/c++/4.2.0/memory: In function 'std::pair<_Tp*, int> std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
/usr/include/c++/4.2.0/memory:76: error: 'max' is not a member of 'std::numeric_limits<int>'
make: *** [myx_query.lo] Error 1
Środowisko th-i686, gcc-4.2.0-0.20061119r118994.1
(z gcc-4.2.0-0.20061030r118195.3 identycznie)
Z gcc-4.1.2 buduje się elegancko.
Jakieś pomysły?
--
Szymon Siwek
Los nikomu nie szczędzi rozczarowań.
Więcej informacji o liście dyskusyjnej pld-devel-pl