bde*_*vic 2 c r compilation header
我需要R头文件来编译一些东西.我通过以下方式在ubuntu上安装了R:
sudo apt-get r-base-dev
Run Code Online (Sandbox Code Playgroud)
R工作得很好.但我找不到像Rmath.h这样的R头.我尝试编译时遇到此错误:
gcc -g -std=c99 -I/usr/include -O3 -lRmath -lm -lpthread -o qcpg qcpg.c
In file included from qcpg.c:1:0:
qcpg.h:19:19: fatal error: Rmath.h: No such file or directory
compilation terminated.
make: *** [qcpg] Error 1
Run Code Online (Sandbox Code Playgroud)
有任何想法吗??
你也想做
sudo apt-get install r-mathlib
Run Code Online (Sandbox Code Playgroud)
其中包含文件/usr/include/Rmath.h.