# Pastebin Gd2r7Pth FileUtils.cpp: In member function 'virtual int FileUtils::GetFileSize(const string&)': FileUtils.cpp:10:15: error: aggregate 'FileUtils::GetFileSize(const string&)::stat sStatInfo' has incomplete type and cannot be defined struct stat sStatInfo; ^~~~~~~~~ FileUtils.cpp:12:43: error: invalid use of incomplete type 'struct FileUtils::GetFileSize(const string&)::stat' if(!stat(strFileName.c_str(), &sStatInfo)) ^ FileUtils.cpp:10:10: note: forward declaration of 'struct FileUtils::GetFileSize(const string&)::stat' struct stat sStatInfo; ^~~~ FileUtils.cpp: In member function 'virtual void FileUtils::ScanFiles(AbstractParser*, const string&)': FileUtils.cpp:28:32: error: 'S_IRUSR' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~~~ FileUtils.cpp:28:42: error: 'S_IWUSR' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~~~ FileUtils.cpp:28:52: error: 'S_IXUSR' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~~~ FileUtils.cpp:28:62: error: 'S_IRGRP' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~~~ FileUtils.cpp:28:72: error: 'S_IXGRP' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~~~ FileUtils.cpp:28:82: error: 'S_IROTH' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~~~ FileUtils.cpp:28:92: error: 'S_IXOTH' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~~~ FileUtils.cpp:28:3: error: 'mkdir' was not declared in this scope mkdir(user_data_dir.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); ^~~~~