Jiefei-Wang / SharedObject

Sharing R objects across multiple R processes without duplicating the object in memory
45 stars 3 forks source link

Fix build issues #17

Closed pekkarr closed 5 months ago

pekkarr commented 6 months ago

Fix gcc's -Wformat-security warnings in src/utils.cpp by using the Rvprintf function instead of using a temporary buffer and Rprintf.

Fix race conditions during build when using parallel make. Without this fix, the static library was created before all object files had finished compiling.

jbedo commented 5 months ago

These patches resolved the build issues for me.

Jiefei-Wang commented 5 months ago

Thank @pekkarr for contributing to this project and thank @jbedo for confirming it. I'll merge this change now