Hi Ashling_Qin,
Yes, there are differences between the libraries of the Arduino and the Galileo. I suggest you to take a look at this document https://communities.intel.com/docs/DOC-23388 . In section 1 you will find the supported libraries.
Regards
Sergio