The boost::process::search_path function seems to be unable to find files on some systems.
For example, for the following:
boost::process::search_path("example.exe");
On some systems, this function will always return an empty string (indicating that it could not find that file), regardless of whether or not file.txt
exists within the directory or PATH
variable. Is this an issue with permissions? And if so, how would I fix this?
Edit: Changed example to executable file.