Cでのコンパイルが必要なRライブラリをインストールするのに非常に苦労しています.Mac OSX Snow Leopardマシンを使用していて、このRパッケージをインストールしようとしています(ここ)。
Mac でのgetline について話しているスレッドを見て、これらの修正をいくつか試しましたが、何も機能していません! 私は初心者で、C をまったく知らないので、それが理由かもしれません! このパッケージ内のファイルを変更してインストールする方法について、誰かヒントを教えてもらえますか?? どんな助けも哀れに感謝します! これが私が得ているエラーです:
** libs
** arch - i386
g++ -arch i386 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -D_FASTMAP -DMAQ_LONGREADS -fPIC -g -O2 -c bed2vector.C -o bed2vector.o
In file included from /usr/include/c++/4.2.1/backward/strstream:51,
from bed2vector.C:8:
/usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
bed2vector.C: In function ‘int get_a_line(FILE*, BZFILE*, int, std::string&)’:
bed2vector.C:74: error: no matching function for call to ‘getline(char**, size_t*, FILE*&)’
make: *** [bed2vector.o] Error 1
chmod: /Library/Frameworks/R.framework/Resources/library/spp/libs/i386/*: No such file or directory
ERROR: compilation failed for package 'spp'