Hello, I’ve recently started playing C:DDA again on the ncurses stable release, but I’d also like to compile from source too. Sadly, I’m getting an error, and I was wondering if someone would help diagnose it for me.
I’ve been using make like so:
make -j4 CCACHE=1 NATIVE=linux32 RELEASE=1 LOCALIZE=0
which then ends at:
…
In file included from /usr/include/c++/6.3.1/string:52:0,
from mtype.h:6,
from game.h:4,
from item_factory.h:4,
from item_factory.cpp:1:
/usr/include/c++/6.3.1/bits/basic_string.h:5340:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/include/c++/6.3.1/bits/basic_string.h:5340:5: note: template argument deduction/substitution failed:
item_factory.cpp:579:64: note: ‘std::ifstream {aka std::basic_ifstream}’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
std::cerr << “In JSON file “” << file_name << “”” << data_file << “:” << err << std::endl;
^~~~~~~~~
make: *** [Makefile:194: obj/item_factory.o] Error 1
make: *** Waiting for unfinished jobs…
I can try to attach the full output of make if needed, but for some reason I can’t attach the 33.8kB file, or even use a pastebin link / code tags. Hopefully it’s just some kind of spam protection on new accounts or something and I can upload it later.
Regardless, I would be extremely grateful for the help!