July 18, 2014 at 5:58 am #8961
MCP23017 will not work with MikroC Port Expanding Library.. You need to develop your own library functions..
This link might help you :
You can connect SCL and SDA to PIN 34 and 33 respectively. Please refer the datasheet of 18F4550.