- 论坛徽章:
- 0
|
[root@bogon loginserver]# make linux
g++ -g -c cLoginServer.cpp -o ./obj/debug/cLoginServer.o -I../boost/ -lpthread -lrt
g++ -g -c main.cpp -o ./obj/debug/main.o -I../boost/ -lpthread -lrt
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:61,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/algorithm:62,
from ../boost/boost/smart_ptr/shared_ptr.hpp:42,
from ../public/TimerQueue.h:13,
from main.cpp:16:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/algorithmfwd.h:364:41: error: macro "min" passed 3 arguments, but takes just 2
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:61,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/algorithm:62,
from ../boost/boost/smart_ptr/shared_ptr.hpp:42,
from ../public/TimerQueue.h:13,
from main.cpp:16:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/algorithmfwd.h:360: error: expected unqualified-id before ‘const’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/algorithmfwd.h:360: error: expected ‘)’ before ‘const’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/algorithmfwd.h:360: error: expected ‘)’ before ‘const’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/algorithmfwd.h:360: error: expected ‘)’ before ‘const’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/algorithmfwd.h:360: error: expected initializer before ‘const’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/algorithmfwd.h:364: error: template declaration of ‘const _Tp& std::min’
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/algorithm:62,
from ../boost/boost/smart_ptr/shared_ptr.hpp:42,
from ../public/TimerQueue.h:13,
from main.cpp:16:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h: In function ‘void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:3239: error: expected unqualified-id before ‘(’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h: In function ‘void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance, _Compare)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algo.h:3263: error: expected unqualified-id before ‘(’ token
make: *** [main.o] Error 1
这个是什么错~?
boost里 smart_ptr/shared_ptr.hpp 第42行: #include <algorithm>
把他注释掉就好了
是和系统冲突? |
|