Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upinstallation: error: ‘sort’ is not a member of ‘std’ #13
Comments
|
What platform are you using? |
|
Amazon Linux on aws. |
|
Can you try installing with either:
You'll need to install the remotes or devtools package first, of course. The remotes package has fewer dependencies so will be easier to install. |
|
@wch Thanks for your suggestion. Error:
|
|
Oh, I'm sorry, I forgot to add the branch name. It should be: devtools::install_github("r-lib/fastmap@algo-header") |
|
@wch Thanks. |
When running
install.packages("fastmap"), I got this error:** package ‘fastmap’ successfully unpacked and MD5 sums checked
** libs
g++ -m64 -std=gnu++0x -I"/usr/include/R" -DNDEBUG -Ilib/ -I/usr/local/include -DR_NO_REMAP -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c fastmap.cpp -o fastmap.o
fastmap.cpp: In function ‘SEXPREC* C_map_keys(SEXPREC*, SEXPREC*)’:
fastmap.cpp:139: error: ‘sort’ is not a member of ‘std’
fastmap.cpp: In function ‘SEXPREC* C_map_keys_idxs(SEXPREC*, SEXPREC*)’:
fastmap.cpp:179: error: ‘sort’ is not a member of ‘std’
make: *** [fastmap.o] Error 1
ERROR: compilation failed for package ‘fastmap’
Search "‘sort’ is not a member of ‘std’", many posts said the file should include "#include "
I doubt it's the problem of gcc flags.