This is only SDK code I suppose, the source code of FarCry engine would be much bigger.

Post your compilation log please.

You should be able to compile it with newest GCC, there's no point in getting ancient 3.4 version.