Tpetra: Use of "uint" in multiple files causing build failures on Mac OS X, GNU 8.2.x
Created by: glhenni
@trilinos/Tpetra
Something on Mac OS X has removed the definition of "uint" from the GNU 8.2 compiler suite and now I'm getting errors during the compilation of tpetra. I don't believe "uint" is portable and should be replaced with the full "unsigned int", although in many cases it looks like it's not used correctly in tpetra. For instance, core/src/Tpetra_Import_Util2.hpp:235
auto NumRecvs = Distor.getNumReceives();
.
.
.
for(uint i=0,j=0;i<NumRecvs;i++){
In this case "uint i" should be replaced with "auto i" to be correct.
Your Environment
- Relevant repo SHA1s: a6e9a58e
- Relevant configure flags or configure script:
- Operating system and version: Mac OS X 10.12.6
- Compiler and TPL versions: GNU 8.2.0