Fatal Error

Wordpress 3.1, Buddypress 1.2.8

On the home page of the network theme on my local install I am getting the following error

Fatal error: Call to undefined function switch_to_blog() in C:\xampp\htdocs\wp\wp-content\themes\network\library\functions\custom-functions.php on line 445