I compiled the code as:
Define LCD_DREG PORTA
Define LCD_DBIT 0
Define LCD_RSREG PORTB
Define LCD_RSBIT 4
Define LCD_EREG PORTB
Define LCD_EBIT 5

default is 4 bits, unless defined, so since it is not defined, it is 4 bit bus. So Port A0, through A4 go to the D4 through D7 on the LCD. Since PortB was defined for both RSREG and EREG, RSBit is portb.4 and EBit is portb.5. If you need me to change those, let me know. But again, you can compile yourself with the 15 day free trial version.

Here is a picture of the connections. There is similar information in the PBP manual.
Name:  lcd.png
Views: 1641
Size:  14.3 KB