*.o: File format not recognized on Windows 7

半世苍凉 提交于 2019-12-02 00:09:41

The issue is the .so and .o files are only viable with the same architecture e.g. OS X is 64 bit and Windows is 32bit (mingw_32). Please remove them from dev-1/src and then you should be good to go. These files are automatically built on package install as they are the result of using a compiler.

After they are removed, try to create a .gitignore file with the following:

src/*.o
src/*.so
src/*.dll

This will make OS specific files not selectable for staging and, in turn, commits.

As a general rule of thumb, only keep .cpp or .h files within /src while using Rcpp.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!