Boost.Log V1. error on QNX6.4 "boost::filesystem::create_directories: File exists: "blabla"

The "blabla" in title is the path where I ran the application I got this exception when trying to logging first record. The console log shows up then the exception thrown. In initializing code, I create an boost::log::sinks::text_file_backend with a parameter "boost::log::keywords::file_name = logs/%Y-%m-%d_%H-%M-%S-%N.log" I tested the same code on Windows XP and Linux(Debian), it works. help please. Jinqiang ZHANG

"Jinqiang Zhang" wrote:
The "blabla" in title is the path where I ran the application
I got this exception when trying to logging first record. The console log shows up then the exception thrown.
There is a bug in Boost.Filesystem.V3 which gives incorrect results or a crash on QNX (at least on 6.5.0) when the Filesystem library uses the stat() function internally to check the status of a file or directory. It sounds as though that could explain your problem. See here: https://svn.boost.org/trac/boost/ticket/5355 (issue 2) Try patching Filesystem as described or if possible switch to Filesystem.V2 (see the documentation).
participants (2)
-
Jinqiang Zhang
-
Niklas Angare