C++ code that uses Boost Filesystem was compiling fine with Boost 1.49. However, when I switched to Boost 1.55, the same code gave this error:
foobar.cpp.o: In function `do_something()':
foobar.cpp:(.text+0xb78): undefined reference to `boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::copy_option, boost::system::error_code*)'
This was surprising since the declaration of the copy_file method was present in filesystem.hpp and libboost_filesystem.so was linked during compilation.
Turns out this is a known bug with Boost Filesystem as described here. Apparently, this happens only if the C++ code is compiled with the -std=c++11 option. I was indeed using that option.
The current fix for this bug is to temporarily disable the C++ scoped enums when the Boost Filesystem header file is included, like this:
Windows has a partition manager called Disk Management that can be launched by typing diskmgmt.msc. However, this does not display any filesystem information for non-Windows partitions like ext4. And there is no chance of using it to create partitions with non-Windows partitions.
MiniTool Partition Wizard is a free Windows tool that can be used to view partition information for all types of filesystems. You can also create or edit partitions of those types. I find it useful when I occasionally have to use dual-boot Windows machines to quickly find out all about its partitions.
Tried with: MiniTool Partition Wizard Home Edition 8.1.1 and Windows 7 Professional 64-bit
A label makes it easy for users to identify a partition. This is especially necessary if you deal with a lot of partitions. Technically, not all partitions can be labeled. This is because a label is a feature of the filesystem and not all filesystems might support it.
I find that using GParted is the easiest way to label a partition. Open it, right-click the partition you want in the list and choose Label. Note that you may have to unmount the partition before you label.