I need to build a c++
program to monitor a directory for changes the files inside it. The Obtaining Directory Change Notifications is recommended in many questions similar to mine. I tried that code but the first error is
_tsplitpath_s was not declared in this scope
the error belongs to the line
_tsplitpath_s(lpDir, lpDrive, 4, NULL, 0, lpFile, _MAX_FNAME, lpExt, _MAX_EXT);
I use gcc version 5.1.0
and run the code by the following command in CMD
g++ file.cpp -o out