Hello, I'm trying to do some fairly simple stuff with WSTP, creating a function 'f' which returns the sum of the two arguments. I followed the instruction for making the template files and make file, but I get a long error message. This is the start of it the error:
Undefined symbols for architecture x86_64:
"std::__basic_file<char>::is_open() const", referenced from:
WSTP::MLLog::logSelectorToFileWithName(WSTP::mllogselector, char const*) in libWSTPi4.a(mllog.cpp.o)
"std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const", referenced from:
mlopen_argv(ws_environment*, long, char**, void*, void*, int*) in libWSTPi4.a(mlopen.c.o)
WSTP::MLLog::~MLLog() in libWSTPi4.a(mllog.cpp.o)
"std::basic_ios<char, std::char_traits<char> >::widen(char) const", referenced from:
feature_greeting(ws_environment*, WSLink*, device_kebab*, _queue*, feature_set*) in libWSTPi4.a(mlgreet.c.o)
WSTP::MLExceptionMessage::print(std::ostream&) const in libWSTPi4.a(mlexceptions.cpp.o)
WSTP::initSyncObjectDir() in libWSTPi4.a(mlplatformthreads.cpp.o)
WSTP::MLLog::~MLLog() in libWSTPi4.a(mllog.cpp.o)
WSTP::MLLog::operator()(WSTP::mllogselector) in libWSTPi4.a(mllog.cpp.o)
WSTP::MLExprLog::writeContentsToStreams(WSTP::MLExprLog::mllogdirection&, bool, std::basic_ostringstream<char, std::char_traits<char>, WSTP::MLStdAllocator<char> >&) in libWSTPi4.a(mlexprlog.cpp.o)
WSTP::MLInterfaceContainer::PrintInterfaceContainer(std::ostream&) const in libWSTPi4.a(mlinterface.cpp.o)
...
If anyone has any idea how to solve the problem, please contact me. I can provide the template and make files used too.
Thanks, Francesco