Veracrypt compile error " 'major' was not declared in this scope"
by burning from LinuxQuestions.org on (#58SFG)
Running Slackware -current 32-bit on a 32-bit machine. Output of the compiling process and error message:
Code:Compiling Directory.cpp
Compiling File.cpp
Compiling FilesystemPath.cpp
Unix/FilesystemPath.cpp: In member function VeraCrypt::FilesystemPath VeraCrypt::FilesystemPath::ToHostDriveOfPartition() const':
Unix/FilesystemPath.cpp:84:49: error: major' was not declared in this scope
84 | linkPathName += StringConverter::ToSingle (major (st.st_rdev)) + string (":") + StringConverter::ToSingle (minor (st.st_rdev));
| ^~~~~
Unix/FilesystemPath.cpp:84:113: error: minor' was not declared in this scope
84 | linkPathName += StringConverter::ToSingle (major (st.st_rdev)) + string (":") + StringConverter::ToSingle (minor (st.st_rdev));
| ^~~~~
make[1]: *** [/tmp/SBo/veracrypt-1.22/src/Build/Include/Makefile.inc:25: Unix/FilesystemPath.o] Error 1
make: *** [Makefile:372: all] Error 2What exactly is it saying went wrong? I'm not too familiar with C or compiler errors in general. I can't tell what the cause of the problem is or what the problem itself even is really.


Code:Compiling Directory.cpp
Compiling File.cpp
Compiling FilesystemPath.cpp
Unix/FilesystemPath.cpp: In member function VeraCrypt::FilesystemPath VeraCrypt::FilesystemPath::ToHostDriveOfPartition() const':
Unix/FilesystemPath.cpp:84:49: error: major' was not declared in this scope
84 | linkPathName += StringConverter::ToSingle (major (st.st_rdev)) + string (":") + StringConverter::ToSingle (minor (st.st_rdev));
| ^~~~~
Unix/FilesystemPath.cpp:84:113: error: minor' was not declared in this scope
84 | linkPathName += StringConverter::ToSingle (major (st.st_rdev)) + string (":") + StringConverter::ToSingle (minor (st.st_rdev));
| ^~~~~
make[1]: *** [/tmp/SBo/veracrypt-1.22/src/Build/Include/Makefile.inc:25: Unix/FilesystemPath.o] Error 1
make: *** [Makefile:372: all] Error 2What exactly is it saying went wrong? I'm not too familiar with C or compiler errors in general. I can't tell what the cause of the problem is or what the problem itself even is really.