Creates a compound type with the size size. Returns a negative value upon failiure, otherwise a hid_t reference.