It depends what you want to compensate. It can be frequency, working point of a transistor amplifier etc... For temperature compensation you need first of all suitable element (transducer) which changes it's properties with temperature (diode-voltage drop when forward biased, NTC-resistance, PTC-resistance ...). This element has to be part of circuit which does compensation. Result of compensation is less temperature instabilities of some parameter of circuit or device.