You have defined x264_cpu_cpuid function but not _x264_cpu_cpuid. See the underscore at the begining.

I hope that clears thing out.