It compiles for me too... but when it goes from the compiler to the linker is where I am getting the 'reference' errors.
I still havent figured out how to set up my devC++ compiler.
LOL! I just now after a few months of tinkering got rid of a nasty asp4wave fatal execution thing that would give me the blue screen of death.
This c++ thing might take a while to figure out.