mrirecon / bart

BART: Toolbox for Computational Magnetic Resonance Imaging
https://mrirecon.github.io/bart/
BSD 3-Clause "New" or "Revised" License
294 stars 162 forks source link

error: unknown type name 'uint' #240

Closed JosephGWoods closed 3 years ago

JosephGWoods commented 3 years ago

I pulled the latest version of bart from git today and recompiled on both my CentOS Linux and macOS systems. It compiled fine on the Linux system, but failed on my mac due to the following error:

/Users/jwoods/Documents/MATLAB/bart/src/num/ops.c:728:7: error: unknown type name 'uint' for (uint i = 0; i < D + 1; i++) ^~~~

I fixed this by simply changing "uint" to "unsigned int".

I'm using the gcc-mp-6 compiler and haven't had this issue before. Just thought I'd let you know!

jtamir commented 3 years ago

I get the same error. Looks like uint is only defined in GLIBC: https://stackoverflow.com/questions/43892984/gcc-5-6-and-7-on-osx-do-not-support-uint