porting from IAR to Codesourcery

Has anyone ported example C code from IAR to Codesourcery? There appear to be header files and probably libraries missing.

Best regards,

Peter