Was causing problems on windows. (Its odd that it worked on gcc without warnings) Thanks to damiles. Kent