Could not compile with GCC 6.0 in red hat system:
make -C src build-static
make[1]: Entering directory /rigel/home/hx2196/loki-0.1.7/src'
make[1]: Nothing to be done forbuild-static'.
make[1]: Leaving directory /rigel/home/hx2196/loki-0.1.7/src'
make -C src build-shared
make[1]: Entering directory/rigel/home/hx2196/loki-0.1.7/src'
make[1]: Nothing to be done for build-shared'.
make[1]: Leaving directory/rigel/home/hx2196/loki-0.1.7/src'
make -C test
make[1]: Entering directory /rigel/home/hx2196/loki-0.1.7/test'
make -C Factory
make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Factory'
make[2]: Nothing to be done for all'.
make[2]: Leaving directory/rigel/home/hx2196/loki-0.1.7/test/Factory'
make -C OrderedStatic
make[2]: Entering directory /rigel/home/hx2196/loki-0.1.7/test/OrderedStatic'
make[2]: Nothing to be done forall'.
make[2]: Leaving directory /rigel/home/hx2196/loki-0.1.7/test/OrderedStatic'
make -C Pimpl
make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Pimpl'
make[2]: Nothing to be done for all'.
make[2]: Leaving directory/rigel/home/hx2196/loki-0.1.7/test/Pimpl'
make -C ScopeGuard
make[2]: Entering directory /rigel/home/hx2196/loki-0.1.7/test/ScopeGuard'
make[2]: Nothing to be done forall'.
make[2]: Leaving directory /rigel/home/hx2196/loki-0.1.7/test/ScopeGuard'
make -C CachedFactory
make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/CachedFactory'
make[2]: Nothing to be done for all'.
make[2]: Leaving directory/rigel/home/hx2196/loki-0.1.7/test/CachedFactory'
make -C Function
make[2]: Entering directory /rigel/home/hx2196/loki-0.1.7/test/Function'
make[2]: Nothing to be done forall'.
make[2]: Leaving directory /rigel/home/hx2196/loki-0.1.7/test/Function'
make -C Register
make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Register'
make[2]: Nothing to be done for all'.
make[2]: Leaving directory/rigel/home/hx2196/loki-0.1.7/test/Register'
make -C SmallObj
make[2]: Entering directory /rigel/home/hx2196/loki-0.1.7/test/SmallObj'
g++ -o SmallObjBench SmallObjBench.o ../../lib/libloki.a
g++ -o SmallObjSingleton SmallObjSingleton.o ../../lib/libloki.a
make[2]: Leaving directory/rigel/home/hx2196/loki-0.1.7/test/SmallObj'
make -C SmartPtr
make[2]: Entering directory /rigel/home/hx2196/loki-0.1.7/test/SmartPtr'
g++ -o main main.o strong.o LockTest.o ../../lib/libloki.a -lpthread
LockTest.o: In functionThreadPool::Create(unsigned long, void ()(void))':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/LockTest.cpp:127: undefined reference to Loki::SPrintf(std::string&, char const*)'
LockTest.o: In functionLoki::PrintfState<std::string&, char="">::Write(char const</std::string&,>, char const)':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
LockTest.o:/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: more undefined references toLoki::write(std::string&, char const, char const)' follow
LockTest.o: In function ThreadPool::Create(unsigned long, void* (*)(void*))':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/LockTest.cpp:127: undefined reference toLoki::SPrintf(std::string&, char const)'
LockTest.o: In function Loki::PrintfState<std::string&, char>::Write(char const*, char const*)':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
LockTest.o:/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: more undefined references to Loki::write(std::string&, char const*, char const*)' follow
LockTest.o: In functionThreadPool::Create(unsigned long, void ()(void))':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/LockTest.cpp:127: undefined reference to Loki::SPrintf(std::string&, char const*)'
LockTest.o: In functionLoki::PrintfState<std::string&, char="">::Write(char const</std::string&,>, char const)':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
LockTest.o:/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: more undefined references toLoki::write(std::string&, char const, char const)' follow
LockTest.o: In function ThreadPool::Start()':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/LockTest.cpp:140: undefined reference toLoki::SPrintf(std::string&, char const)'
LockTest.o: In function Loki::PrintfState<std::string&, char>::Write(char const*, char const*)':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference to Loki::write(std::string&, char const*, char const*)'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: undefined reference toLoki::write(std::string&, char const, char const)'
LockTest.o:/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/SafeFormat.h:344: more undefined references to Loki::write(std::string&, char const*, char const*)' follow
strong.o: In functionvoid Loki::SetLongevity<loki::allocatorsingleton\<loki::classlevellockable, 4096ul,="" 256ul,="" 4ul,="" loki::longevitylifetime::dieassmallobjectparent,="" loki::mutex="">, Loki::Private::Adapter\<loki::allocatorsingleton\<loki::classlevellockable, 4096ul,="" 256ul,="" 4ul,="" loki::longevitylifetime::dieassmallobjectparent,="" loki::mutex=""> > >(Loki::AllocatorSingleton<loki::classlevellockable, 4096ul,="" 256ul,="" 4ul,="" loki::longevitylifetime::dieassmallobjectparent,="" loki::mutex="">*, unsigned int, Loki::Private::Adapter<loki::allocatorsingleton\<loki::classlevellockable, 4096ul,="" 256ul,="" 4ul,="" loki::longevitylifetime::dieassmallobjectparent,="" loki::mutex=""> >)':
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/Singleton.h:154: undefined reference to Loki::Private::pTrackerArray'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/Singleton.h:166: undefined reference toLoki::Private::pTrackerArray'
/rigel/home/hx2196/loki-0.1.7/test/SmartPtr/../../include/loki/Singleton.h:155: undefined reference to Loki::Private::pTrackerArray'
collect2: error: ld returned 1 exit status
make[2]: *** [main] Error 1
make[2]: Leaving directory/rigel/home/hx2196/loki-0.1.7/test/SmartPtr'
make[1]: *** [SmartPtr] Error 2
make[1]: Leaving directory `/rigel/home/hx2196/loki-0.1.7/test'
make: *** [check] Error 2</loki::allocatorsingleton\<loki::classlevellockable,></loki::classlevellockable,></loki::allocatorsingleton\<loki::classlevellockable,></loki::allocatorsingleton\<loki::classlevellockable,>
The detailed system is: RHEL 7
make -C src build-static
make[1]: Entering directory
/rigel/home/hx2196/loki-0.1.7/src' g++ -MM -MT Singleton.lo -I../include -DNDEBUG Singleton.cpp > .shared-dep/Singleton.dep g++ -MM -MT LevelMutex.lo -I../include -DNDEBUG LevelMutex.cpp > .shared-dep/LevelMutex.dep g++ -MM -MT SafeFormat.lo -I../include -DNDEBUG SafeFormat.cpp > .shared-dep/SafeFormat.dep g++ -MM -MT OrderedStatic.lo -I../include -DNDEBUG OrderedStatic.cpp > .shared-dep/OrderedStatic.dep g++ -MM -MT SmallObj.lo -I../include -DNDEBUG SmallObj.cpp > .shared-dep/SmallObj.dep g++ -MM -MT StrongPtr.lo -I../include -DNDEBUG StrongPtr.cpp > .shared-dep/StrongPtr.dep g++ -MM -MT SmartPtr.lo -I../include -DNDEBUG SmartPtr.cpp > .shared-dep/SmartPtr.dep g++ -MM -MT Singleton.o -I../include -DNDEBUG Singleton.cpp > .static-dep/Singleton.dep g++ -MM -MT LevelMutex.o -I../include -DNDEBUG LevelMutex.cpp > .static-dep/LevelMutex.dep g++ -MM -MT SafeFormat.o -I../include -DNDEBUG SafeFormat.cpp > .static-dep/SafeFormat.dep g++ -MM -MT OrderedStatic.o -I../include -DNDEBUG OrderedStatic.cpp > .static-dep/OrderedStatic.dep g++ -MM -MT SmallObj.o -I../include -DNDEBUG SmallObj.cpp > .static-dep/SmallObj.dep g++ -MM -MT StrongPtr.o -I../include -DNDEBUG StrongPtr.cpp > .static-dep/StrongPtr.dep g++ -MM -MT SmartPtr.o -I../include -DNDEBUG SmartPtr.cpp > .static-dep/SmartPtr.dep make[1]: Leaving directory/rigel/home/hx2196/loki-0.1.7/src'make[1]: Entering directory
/rigel/home/hx2196/loki-0.1.7/src' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o SmartPtr.o SmartPtr.cpp In file included from ../include/loki/SmallObj.h:23:0, from ../include/loki/SmartPtr.h:33, from SmartPtr.cpp:20: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, from ../include/loki/SmartPtr.h:33, from SmartPtr.cpp:20: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o StrongPtr.o StrongPtr.cpp In file included from ../include/loki/SmallObj.h:23:0, from ../include/loki/SmartPtr.h:33, from ../include/loki/StrongPtr.h:20, from StrongPtr.cpp:16: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, from ../include/loki/SmartPtr.h:33, from ../include/loki/StrongPtr.h:20, from StrongPtr.cpp:16: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from StrongPtr.cpp:16:0: ../include/loki/StrongPtr.h: In static member function ‘static void Loki::DeleteSingle<P>::Delete(const P*)’: ../include/loki/StrongPtr.h:193:22: warning: typedef ‘Type_Must_Be_Defined’ locally defined but not used [-Wunused-local-typedefs] typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; ^~~~~~~~~~~~~~~~~~~~ ../include/loki/StrongPtr.h: In static member function ‘static void Loki::DeleteArray<P>::Delete(const P*)’: ../include/loki/StrongPtr.h:224:22: warning: typedef ‘Type_Must_Be_Defined’ locally defined but not used [-Wunused-local-typedefs] typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; ^~~~~~~~~~~~~~~~~~~~ g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o SmallObj.o SmallObj.cpp In file included from ../include/loki/SmallObj.h:23:0, from SmallObj.cpp:19: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, from SmallObj.cpp:19: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o OrderedStatic.o OrderedStatic.cpp In file included from ../include/loki/OrderedStatic.h:22:0, from OrderedStatic.cpp:16: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/OrderedStatic.h:22, from OrderedStatic.cpp:16: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o SafeFormat.o SafeFormat.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o LevelMutex.o LevelMutex.cpp LevelMutex.cpp: In function ‘Loki::MutexErrors::Type Loki::DoMutexesMatchContainer(const MutexContainer&)’: LevelMutex.cpp:186:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ LevelMutex.cpp: In static member function ‘static Loki::MutexErrors::Type Loki::LevelMutexInfo::MultiLock(Loki::LevelMutexInfo::MutexContainer&)’: LevelMutex.cpp:320:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ LevelMutex.cpp: In static member function ‘static Loki::MutexErrors::Type Loki::LevelMutexInfo::MultiLock(Loki::LevelMutexInfo::MutexContainer&, unsigned int)’: LevelMutex.cpp:403:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ LevelMutex.cpp: In static member function ‘static Loki::MutexErrors::Type Loki::LevelMutexInfo::MultiUnlock(Loki::LevelMutexInfo::MutexContainer&)’: LevelMutex.cpp:493:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../include -DNDEBUG -c -o Singleton.o Singleton.cpp In file included from Singleton.cpp:19:0: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from Singleton.cpp:19: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ ar rv ../lib/libloki.a SmartPtr.o StrongPtr.o SmallObj.o OrderedStatic.o SafeFormat.o LevelMutex.o Singleton.o ar: creating ../lib/libloki.a a - SmartPtr.o a - StrongPtr.o a - SmallObj.o a - OrderedStatic.o a - SafeFormat.o a - LevelMutex.o a - Singleton.o make[1]: Leaving directory/rigel/home/hx2196/loki-0.1.7/src'make -C src build-shared
make[1]: Entering directory
/rigel/home/hx2196/loki-0.1.7/src' g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -I../include -DNDEBUG -o SmartPtr.lo SmartPtr.cpp In file included from ../include/loki/SmallObj.h:23:0, from ../include/loki/SmartPtr.h:33, from SmartPtr.cpp:20: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, from ../include/loki/SmartPtr.h:33, from SmartPtr.cpp:20: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -I../include -DNDEBUG -o StrongPtr.lo StrongPtr.cpp In file included from ../include/loki/SmallObj.h:23:0, from ../include/loki/SmartPtr.h:33, from ../include/loki/StrongPtr.h:20, from StrongPtr.cpp:16: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, from ../include/loki/SmartPtr.h:33, from ../include/loki/StrongPtr.h:20, from StrongPtr.cpp:16: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from StrongPtr.cpp:16:0: ../include/loki/StrongPtr.h: In static member function ‘static void Loki::DeleteSingle<P>::Delete(const P*)’: ../include/loki/StrongPtr.h:193:22: warning: typedef ‘Type_Must_Be_Defined’ locally defined but not used [-Wunused-local-typedefs] typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; ^~~~~~~~~~~~~~~~~~~~ ../include/loki/StrongPtr.h: In static member function ‘static void Loki::DeleteArray<P>::Delete(const P*)’: ../include/loki/StrongPtr.h:224:22: warning: typedef ‘Type_Must_Be_Defined’ locally defined but not used [-Wunused-local-typedefs] typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; ^~~~~~~~~~~~~~~~~~~~ g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -I../include -DNDEBUG -o SmallObj.lo SmallObj.cpp In file included from ../include/loki/SmallObj.h:23:0, from SmallObj.cpp:19: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, from SmallObj.cpp:19: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -I../include -DNDEBUG -o OrderedStatic.lo OrderedStatic.cpp In file included from ../include/loki/OrderedStatic.h:22:0, from OrderedStatic.cpp:16: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from ../include/loki/OrderedStatic.h:22, from OrderedStatic.cpp:16: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -I../include -DNDEBUG -o SafeFormat.lo SafeFormat.cpp g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -I../include -DNDEBUG -o LevelMutex.lo LevelMutex.cpp LevelMutex.cpp: In function ‘Loki::MutexErrors::Type Loki::DoMutexesMatchContainer(const MutexContainer&)’: LevelMutex.cpp:186:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ LevelMutex.cpp: In static member function ‘static Loki::MutexErrors::Type Loki::LevelMutexInfo::MultiLock(Loki::LevelMutexInfo::MutexContainer&)’: LevelMutex.cpp:320:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ LevelMutex.cpp: In static member function ‘static Loki::MutexErrors::Type Loki::LevelMutexInfo::MultiLock(Loki::LevelMutexInfo::MutexContainer&, unsigned int)’: LevelMutex.cpp:403:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ LevelMutex.cpp: In static member function ‘static Loki::MutexErrors::Type Loki::LevelMutexInfo::MultiUnlock(Loki::LevelMutexInfo::MutexContainer&)’: LevelMutex.cpp:493:44: warning: conversion to ‘unsigned int’ from ‘std::vector<volatile Loki::LevelMutexInfo*>::size_type {aka long unsigned int}’ may alter its value [-Wconversion] const unsigned int count = mutexes.size(); ~~~~~~~~~~~~^~ g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -I../include -DNDEBUG -o Singleton.lo Singleton.cpp In file included from Singleton.cpp:19:0: ../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’: ../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<LifetimeTracker> ^~~~~~~~ In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0, from ../include/loki/Singleton.h:30, from Singleton.cpp:19: /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ g++ --shared -Wl,-soname=libloki.so.0.1.7 -fPIC -o ../lib/libloki.so.0.1.7 SmartPtr.lo StrongPtr.lo SmallObj.lo OrderedStatic.lo SafeFormat.lo LevelMutex.lo Singleton.lo -lpthread make[1]: Leaving directory/rigel/home/hx2196/loki-0.1.7/src'make -C test
make[1]: Entering directory
/rigel/home/hx2196/loki-0.1.7/test' make -C Factory make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Factory'g++ -MM -MT Factory.lo -I../../include -DNDEBUG Factory.cpp > .shared-dep/Factory.dep
g++ -MM -MT Factory.o -I../../include -DNDEBUG Factory.cpp > .static-dep/Factory.dep
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/Factory' make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Factory'g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../../include -DNDEBUG -c -o Factory.o Factory.cpp
In file included from ../../include/loki/SmallObj.h:23:0,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
../../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T, unsigned int, Destroyer)’:
../../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<lifetimetracker>
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from Factory.cpp:19:
../../include/loki/Functor.h: At global scope:
../../include/loki/Functor.h:1250:22: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
Functor(std::auto_ptr<impl> spImpl) : spImpl_(spImpl)
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from Factory.cpp:19:
../../include/loki/Functor.h:1263:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
typedef Impl * (std::auto_ptr<impl>::</impl></class></typename></impl></class></typename></lifetimetracker></class>unspecified_bool_type)() const;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from Factory.cpp:19:
../../include/loki/Functor.h:1428:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<impl> spImpl_;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from Factory.cpp:19:
../../include/loki/Functor.h: In member function ‘Loki::Functor<r, tlist,="" threadingmodel="">::operator Loki::Functor<r, tlist,="" threadingmodel="">::unspecified_bool_type() const’:
../../include/loki/Functor.h:1267:42: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return spImpl_.get() ? &std::auto_ptr<impl>::get : 0;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from Factory.cpp:19:
../../include/loki/Functor.h: In function ‘typename Loki::Private::BinderFirstTraits<fctor>::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)’:
../../include/loki/Functor.h:1619:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Outgoing(std::auto_ptr<typename outgoing::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from Factory.cpp:19:
../../include/loki/Functor.h: In function ‘Fun2 Loki::Chain(const Fun1&, const Fun2&)’:
../../include/loki/Functor.h:1781:26: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Fun2(std::auto_ptr<typename fun2::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from Factory.cpp:19:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
g++ -o Factory Factory.o ../../lib/libloki.a
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/Factory' make -C OrderedStatic make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/OrderedStatic'g++ -MM -MT main.lo -I../../include -DNDEBUG main.cpp > .shared-dep/main.dep
g++ -MM -MT main.o -I../../include -DNDEBUG main.cpp > .static-dep/main.dep
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/OrderedStatic' make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/OrderedStatic'g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../../include -DNDEBUG -c -o main.o main.cpp
In file included from ../../include/loki/SmallObj.h:23:0,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
../../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T, unsigned int, Destroyer)’:
../../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<lifetimetracker>
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:22:0:
../../include/loki/Functor.h: At global scope:
../../include/loki/Functor.h:1250:22: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
Functor(std::auto_ptr<impl> spImpl) : spImpl_(spImpl)
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:22:0:
../../include/loki/Functor.h:1263:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
typedef Impl * (std::auto_ptr<impl>::</impl></class></typename></impl></class></typename></lifetimetracker></class>unspecified_bool_type)() const;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:22:0:
../../include/loki/Functor.h:1428:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<impl> spImpl_;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:22:0:
../../include/loki/Functor.h: In member function ‘Loki::Functor<r, tlist,="" threadingmodel="">::operator Loki::Functor<r, tlist,="" threadingmodel="">::unspecified_bool_type() const’:
../../include/loki/Functor.h:1267:42: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return spImpl_.get() ? &std::auto_ptr<impl>::get : 0;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:22:0:
../../include/loki/Functor.h: In function ‘typename Loki::Private::BinderFirstTraits<fctor>::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)’:
../../include/loki/Functor.h:1619:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Outgoing(std::auto_ptr<typename outgoing::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:22:0:
../../include/loki/Functor.h: In function ‘Fun2 Loki::Chain(const Fun1&, const Fun2&)’:
../../include/loki/Functor.h:1781:26: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Fun2(std::auto_ptr<typename fun2::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from main.cpp:22:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
g++ -o main main.o ../../lib/libloki.a
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/OrderedStatic' make -C Pimpl make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Pimpl'g++ -MM -MT main.lo -I../../include -DNDEBUG main.cpp > .shared-dep/main.dep
g++ -MM -MT main.o -I../../include -DNDEBUG main.cpp > .static-dep/main.dep
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/Pimpl' make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Pimpl'g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../../include -DNDEBUG -c -o main.o main.cpp
In file included from type.h:16:0,
from main.cpp:24:
../../include/loki/Pimpl.h: In destructor ‘Loki::Pimpl<t, pointer="">::~Pimpl()’:
../../include/loki/Pimpl.h:93:26: warning: typedef ‘T_must_be_defined’ locally defined but not used [-Wunused-local-typedefs]
typedef char T_must_be_defined[sizeof(T) ? 1 : -1 ];
^~~~~~~~~~~~~~~~~
In file included from ../../include/loki/SmallObj.h:23:0,
from ../../include/loki/SmartPtr.h:33,
from type.h:24,
from main.cpp:24:
../../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T, unsigned int, Destroyer)’:
../../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<lifetimetracker>
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/SmartPtr.h:33,
from type.h:24,
from main.cpp:24:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:24:0:
type.h: At global scope:
type.h:94:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
typedef std::auto_ptr<implof\<e> > StdAutoPtr;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/SmartPtr.h:33,
from type.h:24,
from main.cpp:24:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from main.cpp:25:0:
type2.h:133:23: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
Pimpl<impl4, std::auto_ptr\<impl4=""> > d;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/SmartPtr.h:33,
from type.h:24,
from main.cpp:24:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
g++ -o main main.o ../../lib/libloki.a
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/Pimpl' make -C ScopeGuard make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/ScopeGuard'g++ -MM -MT main.lo -I../../include -DNDEBUG main.cpp > .shared-dep/main.dep
g++ -MM -MT main.o -I../../include -DNDEBUG main.cpp > .static-dep/main.dep
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/ScopeGuard' make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/ScopeGuard'g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../../include -DNDEBUG -c -o main.o main.cpp
g++ -o main main.o ../../lib/libloki.a
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/ScopeGuard' make -C CachedFactory make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/CachedFactory'g++ -MM -MT CachedFactoryTest.lo -I../../include -DNDEBUG CachedFactoryTest.cpp > .shared-dep/CachedFactoryTest.dep
g++ -MM -MT CachedFactoryTest.o -I../../include -DNDEBUG CachedFactoryTest.cpp > .static-dep/CachedFactoryTest.dep
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/CachedFactory' make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/CachedFactory'g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../../include -DNDEBUG -c -o CachedFactoryTest.o CachedFactoryTest.cpp
In file included from ../../include/loki/SmallObj.h:23:0,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
../../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T</typename></impl4,></class></typename></implof\<e></class></typename></lifetimetracker></class>, unsigned int, Destroyer)’:
../../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<lifetimetracker>
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from CachedFactoryTest.cpp:29:
../../include/loki/Functor.h: At global scope:
../../include/loki/Functor.h:1250:22: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
Functor(std::auto_ptr<impl> spImpl) : spImpl_(spImpl)
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from CachedFactoryTest.cpp:29:
../../include/loki/Functor.h:1263:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
typedef Impl * (std::auto_ptr<impl>::unspecified_bool_type)() const;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from CachedFactoryTest.cpp:29:
../../include/loki/Functor.h:1428:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<impl> spImpl_;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from CachedFactoryTest.cpp:29:
../../include/loki/Functor.h: In member function ‘Loki::Functor<r, tlist,="" threadingmodel="">::operator Loki::Functor<r, tlist,="" threadingmodel="">::unspecified_bool_type() const’:
../../include/loki/Functor.h:1267:42: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return spImpl_.get() ? &std::auto_ptr<impl>::get : 0;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from CachedFactoryTest.cpp:29:
../../include/loki/Functor.h: In function ‘typename Loki::Private::BinderFirstTraits<fctor>::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)’:
../../include/loki/Functor.h:1619:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Outgoing(std::auto_ptr<typename outgoing::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Factory.h:20:0,
from CachedFactoryTest.cpp:29:
../../include/loki/Functor.h: In function ‘Fun2 Loki::Chain(const Fun1&, const Fun2&)’:
../../include/loki/Functor.h:1781:26: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Fun2(std::auto_ptr<typename fun2::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Factory.h:20,
from CachedFactoryTest.cpp:29:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
CachedFactoryTest.cpp: In function ‘void Sleep(unsigned int)’:
CachedFactoryTest.cpp:51:44: warning: conversion to ‘__useconds_t {aka unsigned int}’ from ‘long unsigned int’ may alter its value [-Wconversion]
void Sleep(unsigned int t) { usleep( 1000 * static_cast<unsigned long="">(t));}
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CachedFactoryTest.cpp: In function ‘void unitTestCachePerformance(int)’:
CachedFactoryTest.cpp:179:119: warning: conversion to ‘double’ from ‘milliSec {aka long int}’ may alter its value [-Wconversion]
che "<<elapsedCache<<" ms | Efficiency " << (double(elapsedNoCache)/elapsedCache)-1 << endl;
^~~~~~~~~~~~
CachedFactoryTest.cpp: In instantiation of ‘milliSec typicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory<abstractproduct, int,="" loki::nulltype,="" loki::simplepointer,="" loki::alwayscreate,="" loki::evictrandom,="" loki::simplestatisticpolicy="">; milliSec = long int]</abstractproduct,>’:
CachedFactoryTest.cpp:238:42: required from ‘void displayTypicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory<abstractproduct, int,="" loki::nulltype,="" loki::simplepointer,="" loki::alwayscreate,="" loki::evictrandom,="" loki::simplestatisticpolicy="">]</abstractproduct,>’
CachedFactoryTest.cpp:252:89: required from here
CachedFactoryTest.cpp:204:13: warning: conversion to ‘int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
CC.Register(i, createProductNull);
^~
CachedFactoryTest.cpp: In instantiation of ‘milliSec typicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory<abstractproduct, int,="" loki::nulltype,="" loki::simplepointer,="" loki::alwayscreate,="" loki::evictlru,="" loki::simplestatisticpolicy="">; milliSec = long int]</abstractproduct,>’:
CachedFactoryTest.cpp:238:42: required from ‘void displayTypicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory<abstractproduct, int,="" loki::nulltype,="" loki::simplepointer,="" loki::alwayscreate,="" loki::evictlru,="" loki::simplestatisticpolicy="">]</abstractproduct,>’
CachedFactoryTest.cpp:257:75: required from here
CachedFactoryTest.cpp:204:13: warning: conversion to ‘int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
CachedFactoryTest.cpp: In instantiation of ‘milliSec typicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory<abstractproduct, int,="" loki::nulltype,="" loki::simplepointer,="" loki::alwayscreate,="" loki::evictaging,="" loki::simplestatisticpolicy="">; milliSec = long int]</abstractproduct,>’:
CachedFactoryTest.cpp:238:42: required from ‘void displayTypicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory<abstractproduct, int,="" loki::nulltype,="" loki::simplepointer,="" loki::alwayscreate,="" loki::evictaging,="" loki::simplestatisticpolicy="">]</abstractproduct,>’
CachedFactoryTest.cpp:262:75: required from here
CachedFactoryTest.cpp:204:13: warning: conversion to ‘int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
g++ -o CachedFactoryTest CachedFactoryTest.o ../../lib/libloki.a
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/CachedFactory' make -C Function make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Function'g++ -MM -MT FunctionTest.lo -I../../include -DNDEBUG FunctionTest.cpp > .shared-dep/FunctionTest.dep
g++ -MM -MT FunctionTest.o -I../../include -DNDEBUG FunctionTest.cpp > .static-dep/FunctionTest.dep
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/Function' make[2]: Entering directory/rigel/home/hx2196/loki-0.1.7/test/Function'g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -I../../include -DNDEBUG -c -o FunctionTest.o FunctionTest.cpp
In file included from ../../include/loki/SmallObj.h:22:0,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
../../include/loki/Threads.h: In static member function ‘static void Loki::ObjectLevelLockable<host, mutexpolicy="">::AtomicAssign(volatile IntType&, Loki::ObjectLevelLockable<host, mutexpolicy="">::IntType)’:
../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
return lval; \
^
../../include/loki/Threads.h:505:9: note: in expansion of macro ‘LOKI_THREADS_ATOMIC_FUNCTIONS’
LOKI_THREADS_ATOMIC_FUNCTIONS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/loki/Threads.h: In static member function ‘static void Loki::ObjectLevelLockable<host, mutexpolicy="">::AtomicAssign(Loki::ObjectLevelLockable<host, mutexpolicy="">::IntType&, const volatile IntType&)’:
../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
return lval; \
^
../../include/loki/Threads.h:505:9: note: in expansion of macro ‘LOKI_THREADS_ATOMIC_FUNCTIONS’
LOKI_THREADS_ATOMIC_FUNCTIONS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/loki/Threads.h: In static member function ‘static void Loki::ClassLevelLockable<host, mutexpolicy="">::AtomicAssign(volatile IntType&, Loki::ClassLevelLockable<host, mutexpolicy="">::IntType)’:
../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
return lval; \
^
../../include/loki/Threads.h:590:9: note: in expansion of macro ‘LOKI_THREADS_ATOMIC_FUNCTIONS’
LOKI_THREADS_ATOMIC_FUNCTIONS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/loki/Threads.h: In static member function ‘static void Loki::ClassLevelLockable<host, mutexpolicy="">::AtomicAssign(Loki::ClassLevelLockable<host, mutexpolicy="">::IntType&, const volatile IntType&)’:
../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
return lval; \
^
../../include/loki/Threads.h:590:9: note: in expansion of macro ‘LOKI_THREADS_ATOMIC_FUNCTIONS’
LOKI_THREADS_ATOMIC_FUNCTIONS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../include/loki/SmallObj.h:23:0,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
../../include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T</host,></host,></host,></host,></host,></host,></host,></host,></unsigned></typename></typename></class></typename></typename></class></fctor></typename></impl></class></r,></r,></typename></impl></class></typename>, unsigned int, Destroyer)’:
../../include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<lifetimetracker>
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Function.h:22:0,
from FunctionTest.cpp:50:
../../include/loki/Functor.h: At global scope:
../../include/loki/Functor.h:1250:22: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
Functor(std::auto_ptr<impl> spImpl) : spImpl_(spImpl)
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Function.h:22:0,
from FunctionTest.cpp:50:
../../include/loki/Functor.h:1263:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
typedef Impl * (std::auto_ptr<impl>::*unspecified_bool_type)() const;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Function.h:22:0,
from FunctionTest.cpp:50:
../../include/loki/Functor.h:1428:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<impl> spImpl_;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Function.h:22:0,
from FunctionTest.cpp:50:
../../include/loki/Functor.h: In member function ‘Loki::Functor<r, tlist,="" threadingmodel="">::operator Loki::Functor<r, tlist,="" threadingmodel="">::unspecified_bool_type() const’:
../../include/loki/Functor.h:1267:42: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return spImpl_.get() ? &std::auto_ptr<impl>::get : 0;
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Function.h:22:0,
from FunctionTest.cpp:50:
../../include/loki/Functor.h: In function ‘typename Loki::Private::BinderFirstTraits<fctor>::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)’:
../../include/loki/Functor.h:1619:30: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Outgoing(std::auto_ptr<typename outgoing::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ../../include/loki/Function.h:22:0,
from FunctionTest.cpp:50:
../../include/loki/Functor.h: In function ‘Fun2 Loki::Chain(const Fun1&, const Fun2&)’:
../../include/loki/Functor.h:1781:26: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
return Fun2(std::auto_ptr<typename fun2::impl="">(
^~~~~~~~
In file included from /cm/local/apps/gcc/6.1.0/include/c++/6.1.0/memory:81:0,
from ../../include/loki/Singleton.h:30,
from ../../include/loki/SmallObj.h:23,
from ../../include/loki/Functor.h:24,
from ../../include/loki/Function.h:22,
from FunctionTest.cpp:50:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
FunctionTest.cpp: In function ‘void test_exception()’:
FunctionTest.cpp:757:11: error: reference to ‘bad_function_call’ is ambiguous
catch(bad_function_call)
^~~~~~~~~~~~~~~~~
In file included from FunctionTest.cpp:13:0:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/functional:1436:9: note: candidates are: class std::bad_function_call
class bad_function_call : public std::exception
^~~~~~~~~~~~~~~~~
In file included from ../../include/loki/Function.h:22:0,
from FunctionTest.cpp:50:
../../include/loki/Functor.h:1180:11: note: class Loki::bad_function_call
class bad_function_call : public std::runtime_error
^~~~~~~~~~~~~~~~~
make[2]: *** [FunctionTest.o] Error 1
make[2]: Leaving directory
/rigel/home/hx2196/loki-0.1.7/test/Function' make[1]: *** [Function] Error 2 make[1]: Leaving directory/rigel/home/hx2196/loki-0.1.7/test'make: *** [check] Error 2</typename></typename></class></typename></typename></class></fctor></typename></impl></class></r,></r,></typename></impl></class></typename></impl></class></typename></impl></class></typename></lifetimetracker></class></impl></class></typename></impl></class></typename></lifetimetracker></class></t,></typename></typename></class></typename></typename></class></fctor></typename></impl></class></r,></r,></typename></impl></class></typename></typename></typename></class></typename></typename></class></fctor></typename></impl></class></r,></r,></typename></impl></class></typename>