Please do the following substitutions (maybe not exhaustive) to match the 0.4.x API: * import scala.scalanative._ ; import scala.scalanative.native._ -> import scala.scalanative.unsafe._ ; import scala.scalanative.unsigned._ * CFunctionPtr ->CFuncPtr * !p._x -> p.x Additionally, "native.xxx" could be shorten to "xxx".