Closed danieldk closed 4 years ago
this change leads to a errors in compilation of python/indexedcorpus.so
building 'indexedcorpus' extension
creating build
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I../ -I/usr/include -I/usr/include/python2.7 -c indexedcorpus.cpp -o build/temp.linux-x86_64-2.7/indexedcorpus.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from ../IndexedCorpus/ActCorpusReader.hh:27:0,
from indexedcorpus.cpp:9:
../IndexedCorpus/IndexedCorpusReader.hh:30:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
typedef std::shared_ptr
etc
C++ has had a shared_ptr class since C++11, which is supported by all modern compilers.