I2C on PIC12s using MPLAB x (win7) and XC8
The Microchip XC8 compiler has integrated peripheral libraries (including I2C libraries), but only for the PIC18F family of micros. The other 8-bit micros (PIC10F, PIC12F, PIC16F) don't have a peripheral library. You'll have to write your own implementation/drivers for the I2C peripheral by directly manipulating the registers.