falloc_test.cpp: In function 'int main()':
falloc_test.cpp:6:18: error: 'FALLOC_FL_PUNCH_HOLE' was not declared in this scope
6 | std::cout << FALLOC_FL_PUNCH_HOLE;
|
Running the exact same command, c++ falloc_test.cpp, outside my conda environment works. Adding #include <linux/falloc.h> also fixes the issue. However, fcntl is supposed to already include this.
Solution to issue cannot be found in the documentation.
Issue
On Ubuntu (tested on 20.04 and 22.04):
where
falloc_test.cpp
is:outputs:
Running the exact same command,
c++ falloc_test.cpp
, outside my conda environment works. Adding#include <linux/falloc.h>
also fixes the issue. However, fcntl is supposed to already include this.Installed packages
Environment info