Fix compilation error
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 27 Nov 2017 03:19:59 +0000 (04:19 +0100)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 27 Nov 2017 03:19:59 +0000 (04:19 +0100)
example/diameter/launcher/main.cpp

index 599e4fe..4f11ee2 100644 (file)
@@ -32,7 +32,7 @@ int main(int argc, const char** argv) {
   std::string cwd = exe.substr(0, exe.find_last_of("/"));
   std::string trace_file = cwd + "/launcher.trace";
 
-  anna::Logger::initialize("launcher", new TraceWriter(trace_file, 2048000));
+  anna::Logger::initialize("launcher", new TraceWriter(trace_file.c_str(), 2048000));
   anna::time::functions::initialize(); // before application instantiation (it have a anna::time object)
   anna::time::functions::setControlPoint(); // start control point (application lifetime)
   Launcher app;