Skip to content

Instantly share code, notes, and snippets.

@jowens
Created August 7, 2015 17:44
Show Gist options
  • Save jowens/5ee54e7d33e5b8b6538d to your computer and use it in GitHub Desktop.
Save jowens/5ee54e7d33e5b8b6538d to your computer and use it in GitHub Desktop.
compiler errors os x / clang
[ 10%] Building CXX object gunrock/CMakeFiles/gunrock.dir/__/externals/moderngpu/src/mgpuutil.cpp.o
/Users/jowens/Documents/working/gunrock/externals/moderngpu/src/mgpuutil.cpp:154:15: error:
no type named 'mt19937' in namespace 'std'
MGPU_RAND_NS::mt19937 mt19937;
~~~~~~~~~~~~~~^
/Users/jowens/Documents/working/gunrock/externals/moderngpu/src/mgpuutil.cpp:173:16: error:
no template named 'uniform_real_distribution' in namespace 'std'; did you
mean 'uniform_int_distribution'?
MGPU_RAND_NS::uniform_real<float> r(min, max);
~~~~~~~~~~~~~~^~~~~~~~~~~~
uniform_int_distribution
/Users/jowens/Documents/working/gunrock/externals/moderngpu/src/mgpuutil.cpp:55:22: note:
expanded from macro 'uniform_real'
#define uniform_real uniform_real_distribution
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2964:7: note:
'uniform_int_distribution' declared here
class uniform_int_distribution
^
/Users/jowens/Documents/working/gunrock/externals/moderngpu/src/mgpuutil.cpp:177:16: error:
no template named 'uniform_real_distribution' in namespace 'std'; did you
mean 'uniform_int_distribution'?
MGPU_RAND_NS::uniform_real<double> r(min, max);
~~~~~~~~~~~~~~^~~~~~~~~~~~
uniform_int_distribution
/Users/jowens/Documents/working/gunrock/externals/moderngpu/src/mgpuutil.cpp:55:22: note:
expanded from macro 'uniform_real'
#define uniform_real uniform_real_distribution
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2964:7: note:
'uniform_int_distribution' declared here
class uniform_int_distribution
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment