it had to have been something wrong with my compiler options, because i set them back to default and it is working fine now. The only thing is, i dont remember messing with the options. oh well aslong as it is working now i guess it is fine.
thanks for the help.