mluipersbeck / dapcstp

GNU Affero General Public License v3.0
7 stars 8 forks source link

make error #2

Closed iamjli closed 7 years ago

iamjli commented 7 years ago

Hi,

Student in Ernest Fraenkel's lab here. I'm having trouble installing your software on my machine (macOS Sierra).

I'm getting the following error when I run make from solver directory:

g++ -std=c++11 -MMD -Iinclude -O3 -DNDEBUG   -c -o src/prep.o src/prep.cpp
In file included from src/prep.cpp:11:
include/stats.h:20:10: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>,
      std::__1::allocator<char> >'
                string name;
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_string;
                                ^
1 error generated.
<builtin>: recipe for target 'src/prep.o' failed
make: *** [src/prep.o] Error 1

I've installed Boost C++.

Thanks! Johnny

iamjli commented 7 years ago

Added these lines (per this article) to include/def.h and include/stats.h

#include <string>
#include <sstream>
#include <iostream>

Then ran make dapcstp and it worked.