lzhang10 / maxent Goto Github PK
View Code? Open in Web Editor NEWMaximum Entropy Modeling Toolkit for Python and C++
Home Page: https://web.archive.org/web/20090820100358/http://homepages.inf.ed.ac.uk/lzhang10/maxent.html
License: Other
Maximum Entropy Modeling Toolkit for Python and C++
Home Page: https://web.archive.org/web/20090820100358/http://homepages.inf.ed.ac.uk/lzhang10/maxent.html
License: Other
:/:/src/Jamfile: No such file or directory
Error msg:
File "main.py", line 45, in train
model.add_heldout_event(observation, str(outcome))
File "/usr/local/lib/python2.7/dist-packages/maxent/cmaxent.py", line 165, in add_heldout_event
return _cmaxent.MaxentModel_add_heldout_event(*args)
NotImplementedError: No matching function for overloaded 'MaxentModel_add_heldout_event'
I had a feature as follows:
prefix="a", frequency = 257, other = 1.23;
C code :
MaxentModel model;
model.begin_add_event();
vector< pair < string, double> > context;
context.push_back(make_pair(string("fw=a" ), 1.0));
context.push_back(make_pair(string("freq"), 257));
context.push_back(make_pair(string("other"), 1.23));
model.add_event(context, string("Yes"), 1);
model.end_add_event();
model.train(60, "gis");
The above is my code, and I do not known any problems in the code. How should I do the above situation.
Hi,
First, thanks for this great toolkit.
Second, this is a question rather than an issue.
I used the python binding version in my experiment. I run the same training code 3 times, but the features file is shuffled at each run.
During 3 runs, I can see the same prints (except the logged time):
2015-09-07 23:00:00,343 : INFO : Start training:
2015-09-07 23:00:11,437 : INFO : Conditional Maximum Entropy Model (C++ version)
Number of context predicates : 79868
Number of outcome : 9
Number of paramaters(features): 120163
My model is trained with
m = cmaxent.MaxentModel()
m.begin_add_event()
c = 0
for line in open(self.train_feature_file):
line = line.strip()
f = line.split("\t")[1].split()
t = str(line.split("\t")[0])
m.add_event(f, t)
c += 1
m.end_add_event()
m.train(100, 'lbfgs', 0.0, 1E-05)
logging.info(m)
m.save(self.model_file)
When predicting, I am using something like,
features = [f.encode("utf-8") for f in features]
pred_tag = m.predict(features)
pred_tags[idx] = pred_tag
However, I am getting different accuracies each time:
0.987249761678
0.987408643152
0.987170320941
The results are comparable, but different.
So, is this behavior expected? and why?
Thanks
J
After download your latest package, I cannot build python extensions now:
$Python setup.py build
running build
running build_py
running build_ext
building 'maxent._cmaxent' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I../lib -I../src -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c maxent_wrap.cxx -o build/temp.macosx-10.6-intel-2.7/maxent_wrap.o -DNDEBUG -DPYTHON_MODULE -DBOOST_DISABLE_THREADS
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
from maxent_wrap.cxx:39:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iosfwd:45,
from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:70,
from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/vector:66,
from ../src/maxentmodel.hpp:33,
from maxent_wrap.cxx:1363:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/bits/c++locale.h: In function ‘int std::convert_from_v(int* const&, char, int, const char, ...)’:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/bits/c++locale.h:77: error: ‘va_start’ was not declared in this scope
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/bits/c++locale.h:85: error: ‘va_end’ was not declared in this scope
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
from maxent_wrap.cxx:39:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iosfwd:45,
from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:70,
from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/vector:66,
from ../src/maxentmodel.hpp:33,
from maxent_wrap.cxx:1363:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64/bits/c++locale.h: In function ‘int std::convert_from_v(int* const&, char, int, const char, ...)’:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64/bits/c++locale.h:77: error: ‘va_start’ was not declared in this scope
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64/bits/c++locale.h:85: error: ‘va_end’ was not declared in this scope
lipo: can't figure out the architecture type of: /var/tmp//ccE8FmMd.out
error: command 'gcc-4.2' failed with exit status 1
I am running python 2.7.2 on Mac OS Lion.
我按照教程安装了gfortran和g77,但是最终调用python的时候只能使用GIS算法而不能使用LBFGS。不知道这是为什么。已经重新build了好多遍。
Message:
LBFGS module not compiled in, use GIS instead
Trying to compile a C++ source file which includes maxent/maxentmodel.hpp leads to a compilation error as maxent/maxentmodel.hpp transitively includes maxent/itemmap.tcc via maxent/itemmap.hpp which is not copied over to [prefix]/local by the installation scripts.
I have had the same problem myself two years ago. I have found that a systematic way to fix it would be to do this:
jirkamarsik/maxent@2dd1a6c
I have just been emailed again by someone else who hit the same problem. How come other users don't have the same issue? Do they put the src directory of the cloned repo in their include paths directly or does the installation script work differently for them?
Anyway, I think the three header files that I have added to the Jamfile above should belong there, since in fact they are transitively included from maxent/maxentmodel.hpp.
Hi
I seem to have inconsistent results when using the lib on multiple threads (calling maxentmodel::eval).
Then I see in the Jamrules : -DBOOST_DISABLE_THREADS ; # no need to link pthread lib
What does it mean? Is the lib (or ate least maxentmodel::eval) supporting multithread or not?
Thanks a lot,
Loic
When I followed INSTALL instructions, in the make phase, the build process aborted because lack of libmaxent.a. What could be the problem? Is there any thrid-party lib I need to install? Thanks.
This is on a x64 Ubuntu/Linux system:
$ python setup.py build
running build
running build_py
running build_ext
building 'maxent._cmaxent' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../lib -I../src -I/usr/local/include -I/usr/include/python2.7 -c maxent_wrap.cxx -o build/temp.linux-x86_64-2.7/maxent_wrap.o -DNDEBUG -DPYTHON_MODULE -DBOOST_DISABLE_THREADS
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from /usr/include/c++/4.6/ext/hash_map:61:0,
from ../src/hash_map.hpp:53,
from ../src/itemmap.hpp:38,
from ../src/maxentmodel.hpp:41,
from maxent_wrap.cxx:1363:
/usr/include/c++/4.6/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
maxent_wrap.cxx:231:1: warning: ‘swig_type_info* SWIG_TypeDynamicCast(swig_type_info*, void**)’ defined but not used [-Wunused-function]
maxent_wrap.cxx:419:1: warning: ‘const char* SWIG_UnpackDataName(const char*, void*, size_t, const char*)’ defined but not used [-Wunused-function]
maxent_wrap.cxx:499:1: warning: ‘void SWIG_PropagateClientData(swig_type_info*)’ defined but not used [-Wunused-function]
maxent_wrap.cxx:1198:1: warning: ‘void* SWIG_Python_MustGetPtr(PyObject*, swig_type_info*, int, int)’ defined but not used [-Wunused-function]
maxent_wrap.cxx:1212:1: warning: ‘int SWIG_Python_ConvertPacked(PyObject*, void*, size_t, swig_type_info*, int)’ defined but not used [-Wunused-function]
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/maxent_wrap.o -L../src/opt -L../src -L/usr/local/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../.. -lmaxent -lz -lgfortran -lm -lquadmath -o build/lib.linux-x86_64-2.7/maxent/_cmaxent.so
/usr/bin/ld: ../src/opt/libmaxent.a(display.o): relocation R_X86_64_32 against `std::cout' can not be used when making a shared object; recompile with -fPIC
../src/opt/libmaxent.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
HI, thanks for providing such good tool to us. But I encounter some problems.
I have successfully install it on my computer and read the manual.pdf, but I still don't know how to use it. I found a ./example directory, while it only contains several .py files. I don't find any train.txt or test.txt files, i.e., the formated input and output files for MaxEnt. I am really confused. Can u provide me any details about this? Thanks.
Compiled successfully with a few c++ depreciated warnings. But when I do do unit test by running $python runall.py. return 8 passed, 9 failed.
在maxent的C++模块build完之后,运行python setup.py build出错,错误原因为:找不到Python.h文件。
解决方法:sudo apt-get install python-dev
希望作者将此说明加入到doc中。谢谢!
I get errors when making unittest
Compiling display.cpp: [OK]
Compiling modelfile.cpp: [OK]
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/utility/addressof.hpp:15,
from ./lib/boost/utility.hpp:12,
from src/eventspace.hpp:36,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/eventspace.hpp:37,
from src/meevent.hpp:35,
from src/modelfile.hpp:34,
from src/modelfile.cpp:34:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
Compiling trainer.cpp: [OK]
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/timer.hpp:20,
from ./lib/boost/progress.hpp:22,
from src/trainer.cpp:36:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/trainer.cpp:38:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
Compiling gistrainer.cpp: [OK]
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/timer.hpp:20,
from src/gistrainer.cpp:52:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/gistrainer.cpp:53:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
Compiling maxentmodel.cpp: [OK]
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/lexical_cast.hpp:32,
from src/maxentmodel.cpp:44:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/lexical_cast.hpp:44:0,
from src/maxentmodel.cpp:44:
./lib/boost/math/special_functions/sign.hpp: In function ‘int boost::math::
signbit(T)’:
./lib/boost/math/special_functions/sign.hpp:113:55: warning: typedef ‘fp_ta
g’ locally defined but not used [-Wunused-local-typedefs]
typedef typename boost::is_floating_point<T>::type fp_tag;
^~~~~~
./lib/boost/math/special_functions/sign.hpp: In function ‘T boost::math::ch
angesign(const T&)’:
./lib/boost/math/special_functions/sign.hpp:127:55: warning: typedef ‘fp_ta
g’ locally defined but not used [-Wunused-local-typedefs]
typedef typename boost::is_floating_point<T>::type fp_tag;
^~~~~~
In file included from ./lib/boost/lexical_cast.hpp:45:0,
from src/maxentmodel.cpp:44:
./lib/boost/math/special_functions/fpclassify.hpp: In function ‘bool boost:
:math::isfinite(T)’:
./lib/boost/math/special_functions/fpclassify.hpp:314:55: warning: typedef
�fp_tag’ locally defined but not used [-Wunused-local-typedefs]
typedef typename boost::is_floating_point<T>::type fp_tag;
^~~~~~
./lib/boost/math/special_functions/fpclassify.hpp: In function ‘bool boost:
:math::isnormal(T)’:
./lib/boost/math/special_functions/fpclassify.hpp:373:55: warning: typedef
�fp_tag’ locally defined but not used [-Wunused-local-typedefs]
typedef typename boost::is_floating_point<T>::type fp_tag;
^~~~~~
./lib/boost/math/special_functions/fpclassify.hpp: In function ‘bool boost:
:math::isinf(T)’:
./lib/boost/math/special_functions/fpclassify.hpp:450:55: warning: typedef
�fp_tag’ locally defined but not used [-Wunused-local-typedefs]
typedef typename boost::is_floating_point<T>::type fp_tag;
^~~~~~
./lib/boost/math/special_functions/fpclassify.hpp: In function ‘bool boost:
:math::isnan(T)’:
./lib/boost/math/special_functions/fpclassify.hpp:519:55: warning: typedef
�fp_tag’ locally defined but not used [-Wunused-local-typedefs]
typedef typename boost::is_floating_point<T>::type fp_tag;
^~~~~~
In file included from src/maxentmodel.cpp:44:0:
./lib/boost/lexical_cast.hpp: In function ‘bool boost::detail::lcast_ret_un
signed(T&, const CharT*, const CharT*)’:
./lib/boost/lexical_cast.hpp:548:47: warning: typedef ‘int_type’ locally
defined but not used [-Wunused-local-typedefs]
typedef typename Traits::int_type int_type;
^~~~~~~~
In file included from ./lib/boost/scoped_ptr.hpp:14:0,
from src/maxentmodel.cpp:46:
./lib/boost/smart_ptr/scoped_ptr.hpp: At global scope:
./lib/boost/smart_ptr/scoped_ptr.hpp:66:31: warning: ‘template<class> class
std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit scoped_ptr( std::auto_ptr<T> p ): px( p.release() ) // never th
rows
^~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/locale_conv.h:41:0,
from /usr/include/c++/6.2.1/locale:43,
from ./lib/boost/lexical_cast.hpp:53,
from src/maxentmodel.cpp:44:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/maxentmodel.cpp:50:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/locale_conv.h:41:0,
from /usr/include/c++/6.2.1/locale:43,
from ./lib/boost/lexical_cast.hpp:53,
from src/maxentmodel.cpp:44:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/maxentmodel.cpp:50:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/locale_conv.h:41:0,
from /usr/include/c++/6.2.1/locale:43,
from ./lib/boost/lexical_cast.hpp:53,
from src/maxentmodel.cpp:44:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/maxentmodel.cpp:50:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/locale_conv.h:41:0,
from /usr/include/c++/6.2.1/locale:43,
from ./lib/boost/lexical_cast.hpp:53,
from src/maxentmodel.cpp:44:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/gistrainer.hpp:44,
from src/maxentmodel.cpp:50:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/locale_conv.h:41:0,
from /usr/include/c++/6.2.1/locale:43,
from ./lib/boost/lexical_cast.hpp:53,
from src/maxentmodel.cpp:44:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
src/maxentmodel.cpp: In member function ‘double maxent::MaxentModel::eval(c
onst context_type&, const outcome_type&) const’:
src/maxentmodel.cpp:437:5: warning: this ‘if’ clause does not guard... [-
Wmisleading-indentation]
if (probs.size() != m_outcome_map->size())
^~
src/maxentmodel.cpp:439:9: note: ...this statement, but the latter is mislead
ingly indented as if it is guarded by the ‘if’
fill(probs.begin(), probs.end(), 0.0);
^~~~
Compiling mmapfile.c: [OK]
Compiling lbfgs_wrapper.c: [OK]
Running gfortran: [OK]
Compiling lbfgstrainer.cpp: [OK]
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/timer.hpp:20,
from src/lbfgstrainer.cpp:41:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from src/trainer.hpp:36,
from src/lbfgstrainer.hpp:34,
from src/lbfgstrainer.cpp:43:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
ar: `u' modifier ignored since `D' is the default (see `U')
Linking maxent: [OK]
Compiling test_display.cpp: [OK]
Linking test_display: [OK]
Compiling test_event.cpp: [OK]
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/utility/addressof.hpp:15,
from ./lib/boost/utility.hpp:12,
from ./src/eventspace.hpp:36,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from test/test_event.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
Linking test_event: [OK]
Compiling test_itemmap.cpp: [OK]
Linking test_itemmap: [OK]
Compiling test_gistrainer.cpp: [ERROR]
g++ -c -o test/test_gistrainer.o -g -O2 -Wall -DNDEBUG -DHAVE_CONFIG_H -fPIC
-DBOOST_DISABLE_THREADS -O3 -Itest -I./src -I. -I./lib/ test/test_gistrainer.
cpp
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/utility/addressof.hpp:15,
from ./lib/boost/utility.hpp:12,
from ./src/trainer.hpp:35,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
test/test_gistrainer.cpp: In function ‘char* test_training()’:
test/test_gistrainer.cpp:64:5: error: reference to ‘shared_ptr’ is ambigu
ous
shared_ptr<MEEventSpace> es(new MEEventSpace);
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_gistrainer.cpp:64:28: error: expected primary-expression before ‘
>’ token
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_gistrainer.cpp:64:49: error: ‘es’ was not declared in this scop
e
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_gistrainer.cpp:69:5: error: reference to ‘shared_ptr’ is ambigu
ous
shared_ptr<ParamsType> params;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_gistrainer.cpp:69:26: error: expected primary-expression before ‘
>’ token
shared_ptr<ParamsType> params;
^
test/test_gistrainer.cpp:69:28: error: ‘params’ was not declared in this
scope
shared_ptr<ParamsType> params;
^~~~~~
test/test_gistrainer.cpp: In function ‘char* test_training2()’:
test/test_gistrainer.cpp:85:5: error: reference to ‘shared_ptr’ is ambigu
ous
shared_ptr<MEEventSpace> es(new MEEventSpace);
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_gistrainer.cpp:85:28: error: expected primary-expression before ‘
>’ token
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_gistrainer.cpp:85:49: error: ‘es’ was not declared in this scop
e
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_gistrainer.cpp:90:5: error: reference to ‘shared_ptr’ is ambigu
ous
shared_ptr<ParamsType> params;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/gistrainer.hpp:44,
from test/test_gistrainer.cpp:4:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_gistrainer.cpp:90:26: error: expected primary-expression before ‘
>’ token
shared_ptr<ParamsType> params;
^
test/test_gistrainer.cpp:90:28: error: ‘params’ was not declared in this
scope
shared_ptr<ParamsType> params;
^~~~~~
...skipped test_gistrainer for lack of <test>test_gistrainer.o...
Compiling test_modelfile.cpp: [ERROR]
g++ -c -o test/test_modelfile.o -g -O2 -Wall -DNDEBUG -DHAVE_CONFIG_H -fPIC -
DBOOST_DISABLE_THREADS -O3 -Itest -I./src -I. -I./lib/ test/test_modelfile.cp
p
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/utility/addressof.hpp:15,
from ./lib/boost/utility.hpp:12,
from ./src/eventspace.hpp:36,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
test/test_modelfile.cpp: In function ‘char* test_me::check_model(maxent::Ma
xentModelFile&)’:
test/test_modelfile.cpp:45:5: error: reference to ‘shared_ptr’ is ambiguo
us
shared_ptr<PredMapType> pred_map;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_modelfile.cpp:45:27: error: expected primary-expression before ‘>
’ token
shared_ptr<PredMapType> pred_map;
^
test/test_modelfile.cpp:45:32: error: ‘pred_map’ was not declared in this
scope
shared_ptr<PredMapType> pred_map;
^~~~~~~~
test/test_modelfile.cpp:46:5: error: reference to ‘shared_ptr’ is ambiguo
us
shared_ptr<OutcomeMapType> outcome_map;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_modelfile.cpp:46:30: error: expected primary-expression before ‘>
’ token
shared_ptr<OutcomeMapType> outcome_map;
^
test/test_modelfile.cpp:46:32: error: ‘outcome_map’ was not declared in t
his scope
shared_ptr<OutcomeMapType> outcome_map;
^~~~~~~~~~~
test/test_modelfile.cpp:47:5: error: reference to ‘shared_ptr’ is ambiguo
us
shared_ptr<ParamsType> params;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_modelfile.cpp:47:26: error: expected primary-expression before ‘>
’ token
shared_ptr<ParamsType> params;
^
test/test_modelfile.cpp:47:32: error: ‘params’ was not declared in this s
cope
shared_ptr<ParamsType> params;
^~~~~~
test/test_modelfile.cpp: In function ‘char* test_rf::check_model(maxent::Ra
ndomFieldModelFile&)’:
test/test_modelfile.cpp:146:5: error: reference to ‘shared_ptr’ is ambigu
ous
shared_ptr<FeatMapType> feat_map;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/eventspace.hpp:37,
from ./src/meevent.hpp:35,
from ./src/modelfile.hpp:34,
from test/test_modelfile.cpp:3:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_modelfile.cpp:146:27: error: expected primary-expression before ‘
>’ token
shared_ptr<FeatMapType> feat_map;
^
test/test_modelfile.cpp:146:29: error: ‘feat_map’ was not declared in thi
s scope
shared_ptr<FeatMapType> feat_map;
^~~~~~~~
...skipped test_modelfile for lack of <test>test_modelfile.o...
Compiling test_mmapfile.cpp: [OK]
Linking test_mmapfile: [OK]
test/test_mmapfile.o: In function `test_mmapfile()':
/media/Programmes/Programmes/maxent/test/test_mmapfile.cpp:14: warning: the u
se of `tmpnam' is dangerous, better use `mkstemp'
Compiling test_lbfgstrainer.cpp: [ERROR]
g++ -c -o test/test_lbfgstrainer.o -g -O2 -Wall -DNDEBUG -DHAVE_CONFIG_H -fPI
C -DBOOST_DISABLE_THREADS -O3 -Itest -I./src -I. -I./lib/ test/test_lbfgstrai
ner.cpp
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/utility/addressof.hpp:15,
from ./lib/boost/utility.hpp:12,
from ./src/trainer.hpp:35,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
test/test_lbfgstrainer.cpp: In function ‘char* test_training()’:
test/test_lbfgstrainer.cpp:63:5: error: reference to ‘shared_ptr’ is ambi
guous
shared_ptr<MEEventSpace> es(new MEEventSpace);
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_lbfgstrainer.cpp:63:28: error: expected primary-expression before
��>’ token
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_lbfgstrainer.cpp:63:49: error: ‘es’ was not declared in this sc
ope
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_lbfgstrainer.cpp:68:5: error: reference to ‘shared_ptr’ is ambi
guous
shared_ptr<ParamsType> params;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_lbfgstrainer.cpp:68:26: error: expected primary-expression before
��>’ token
shared_ptr<ParamsType> params;
^
test/test_lbfgstrainer.cpp:68:28: error: ‘params’ was not declared in thi
s scope
shared_ptr<ParamsType> params;
^~~~~~
test/test_lbfgstrainer.cpp: In function ‘char* test_training2()’:
test/test_lbfgstrainer.cpp:92:5: error: reference to ‘shared_ptr’ is ambi
guous
shared_ptr<MEEventSpace> es(new MEEventSpace);
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_lbfgstrainer.cpp:92:28: error: expected primary-expression before
��>’ token
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_lbfgstrainer.cpp:92:49: error: ‘es’ was not declared in this sc
ope
shared_ptr<MEEventSpace> es(new MEEventSpace);
^
test/test_lbfgstrainer.cpp:97:5: error: reference to ‘shared_ptr’ is ambi
guous
shared_ptr<ParamsType> params;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/trainer.hpp:36,
from ./src/lbfgstrainer.hpp:34,
from test/test_lbfgstrainer.cpp:2:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_lbfgstrainer.cpp:97:26: error: expected primary-expression before
��>’ token
shared_ptr<ParamsType> params;
^
test/test_lbfgstrainer.cpp:97:28: error: ‘params’ was not declared in thi
s scope
shared_ptr<ParamsType> params;
^~~~~~
...skipped test_lbfgstrainer for lack of <test>test_lbfgstrainer.o...
Compiling test_maxentmodel.cpp: [ERROR]
g++ -c -o test/test_maxentmodel.o -g -O2 -Wall -DNDEBUG -DHAVE_CONFIG_H -fPIC
-DBOOST_DISABLE_THREADS -O3 -Itest -I./src -I. -I./lib/ test/test_maxentmode
l.cpp
In file included from ./lib/boost/config.hpp:44:0,
from ./lib/boost/utility/addressof.hpp:15,
from ./lib/boost/utility.hpp:12,
from ./src/maxentmodel.hpp:35,
from test/test_maxentmodel.cpp:4:
./lib/boost/config/stdlib/libstdcpp3.hpp:44:0: warning: "BOOST_DISABLE_THREAD
S" redefined
# define BOOST_DISABLE_THREADS
<command-line>:0:0: note: this is the location of the previous definition
In file included from ./lib/boost/smart_ptr/shared_ptr.hpp:32:0,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
./lib/boost/smart_ptr/detail/shared_count.hpp:284:33: warning: ‘template<cl
ass> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_
p<Y>( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
./lib/boost/smart_ptr/shared_ptr.hpp:146:65: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T
>, R >
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
./lib/boost/smart_ptr/shared_ptr.hpp:285:30: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from ./lib/boost/shared_ptr.hpp:17:0,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
./lib/boost/smart_ptr/shared_ptr.hpp:329:34: warning: ‘template<class> clas
s std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
In file included from /usr/include/c++/6.2.1/memory:81:0,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
/usr/include/c++/6.2.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
test/test_maxentmodel.cpp: In function ‘char* check_model(maxent::MaxentMod
elFile&)’:
test/test_maxentmodel.cpp:133:5: error: reference to ‘shared_ptr’ is ambi
guous
shared_ptr<PredMapType> pred_map;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_maxentmodel.cpp:133:27: error: expected primary-expression before
��>’ token
shared_ptr<PredMapType> pred_map;
^
test/test_maxentmodel.cpp:133:32: error: ‘pred_map’ was not declared in t
his scope
shared_ptr<PredMapType> pred_map;
^~~~~~~~
test/test_maxentmodel.cpp:134:5: error: reference to ‘shared_ptr’ is ambi
guous
shared_ptr<OutcomeMapType> outcome_map;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_maxentmodel.cpp:134:30: error: expected primary-expression before
��>’ token
shared_ptr<OutcomeMapType> outcome_map;
^
test/test_maxentmodel.cpp:134:32: error: ‘outcome_map’ was not declared i
n this scope
shared_ptr<OutcomeMapType> outcome_map;
^~~~~~~~~~~
test/test_maxentmodel.cpp:135:5: error: reference to ‘shared_ptr’ is ambi
guous
shared_ptr<ParamsType> params;
^~~~~~~~~~
In file included from ./lib/boost/throw_exception.hpp:37:0,
from ./lib/boost/smart_ptr/shared_ptr.hpp:31,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
./lib/boost/exception/exception.hpp:148:11: note: candidates are: template<cl
ass T> class boost::shared_ptr
class shared_ptr;
^~~~~~~~~~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
from /usr/include/c++/6.2.1/memory:82,
from ./lib/boost/config/no_tr1/memory.hpp:21,
from ./lib/boost/smart_ptr/shared_ptr.hpp:27,
from ./lib/boost/shared_ptr.hpp:17,
from ./src/maxentmodel.hpp:36,
from test/test_maxentmodel.cpp:4:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: t
emplate<class _Tp> class std::shared_ptr
class shared_ptr;
^~~~~~~~~~
test/test_maxentmodel.cpp:135:26: error: expected primary-expression before
��>’ token
shared_ptr<ParamsType> params;
^
test/test_maxentmodel.cpp:135:28: error: ‘params’ was not declared in thi
s scope
shared_ptr<ParamsType> params;
^~~~~~
...skipped test_maxentmodel for lack of <test>test_maxentmodel.o...
make: *** [Makefile:27: unittest] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.