Nov 5, 2016 at 10:20am Nov 5, 2016 at 10:20am UTC
So I am trying to delete a folder and all subdirectories, files, etc. I'm using boost/filesystem.hpp for this.
But when I try to do
boost::filesystem::remove_all(path); I get a really long compile error.
I did
1 2
boost::filesystem::remove_all
("/storage/emulated/0/Text Editor" );
which didn't work. I'm sure the path is correct and the foler exists (has stuff inside).
Last edited on Nov 5, 2016 at 10:21am Nov 5, 2016 at 10:21am UTC
Nov 5, 2016 at 10:22am Nov 5, 2016 at 10:22am UTC
What are the compiler errors?
Nov 5, 2016 at 5:55pm Nov 5, 2016 at 5:55pm UTC
There are linker errors.
Link with the libraries libboost_filesystem and libboost_system
Nov 6, 2016 at 4:36am Nov 6, 2016 at 4:36am UTC
@JLBorges
I don't know how to link them. I have filesystem.hpp but not system.hpp . Only a folder in boost called system with header files like api_config.hpp , config.hpp , etc.
Is linking just "including" more header files?
Last edited on Nov 6, 2016 at 4:37am Nov 6, 2016 at 4:37am UTC
Nov 6, 2016 at 5:07am Nov 6, 2016 at 5:07am UTC
> I don't know how to link them.
Specifying libraries to link with depends on the tool-chain that is being used.
Have the boost libraries been built? What are you using to build your own code?
Nov 6, 2016 at 6:18am Nov 6, 2016 at 6:18am UTC
@JLBorges
I'm using C4droid. I just have have the boost folder with the libraries (.hpp) in them.