krlmlr / r-appveyor

Tools for using R with AppVeyor (https://appveyor.com)
132 stars 60 forks source link

bin/sh: g++: command not found #41

Closed wush978 closed 8 years ago

wush978 commented 8 years ago

Hi,

I am using sourceCpp in my unit tests of R package. But the compilation failed because the g++ is not found.

Here is the build log: https://ci.appveyor.com/project/wush978/rcereal/build/1.0.29

I also dump the PATH: https://ci.appveyor.com/project/wush978/rcereal/build/1.0.29#L425, but cannot see any error there.

krlmlr commented 8 years ago

As of yesterday, the presence of the src/ directory triggers download of Rtools (#40). Your package doesn't seem to have such a directory, and to me it seemed unusual to require a C++ compiler if there is no src/ directory. Would you mind simply adding an empty src/ directory, perhaps with an empty .gitignore file? I am open to other suggestions.

krlmlr commented 8 years ago

Build log reference: https://ci.appveyor.com/project/wush978/rcereal/build/1.0.29#L25.

wush978 commented 8 years ago

Got it. I'll create an empty directory src/ in the package.

Thanks!