Filite is a library that provides a simple file system abstraction to developers in C++. In this tutorial, we will show you how to install filite on Windows 11.
Before we start, make sure that you have the following installed on your machine:
Open the command prompt or PowerShell and navigate to the directory where you want to install filite.
Clone the filite repository by running the following command:
git clone https://github.com/raftario/filite.git
Once the repository is cloned, navigate to the directory where you cloned it.
cd filite
Next, create a new directory called "build" and navigate to it.
mkdir build
cd build
Generate the Visual Studio solution files using CMake by running the following command:
cmake -G "Visual Studio 16 2019" -A x64 ..
Note: If you have a different version of Visual Studio installed, replace "Visual Studio 16 2019" with your version number.
Open the generated solution file located in the build
directory with Visual Studio.
In Visual Studio, click on the "Build" menu and select "Build Solution" to build the filite library.
After the build process completes, you should see the filite.lib
file located in the build\lib\Release
directory.
To use filite in your C++ project, add the include
directory in the filite repository to your project's include path and link against the filite.lib
file.
#include <filite/filite.hpp>
int main() {
// use filite here
return 0;
}
Note: You should also add the directory containing the filite.lib
file to your project's linker path.
That's it! You have successfully installed filite on Windows 11 and integrated it into your C++ project. Happy coding!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!