Can't compile, screwed up compiler I think

Started by
2 comments, last by Lorian14 18 years, 4 months ago
I am trying to compile this tutorial [http://www.aaroncox.net/tutorials/arcade/Introduction.html], it mostly works, but I have a problem, using this function: void DisplayText(string text, int x, int y, int size, int fR, int fG, int fB, int bR, int bG, int bB); It complains at me saying "parameter 1 of `void DisplayText(std::string, int, int, int, int, int, int, int, int, int)' has incomplete type `std::string'" each time I use that function, if I get rid of the string bit and just set the text to "whatever" in the actual function, it will compile, but everything says "whatever" instead of what I want it to say. I am using Dev-C++. Cheers for any help.
---PGP public key: http://tacticalsites.com/~lorian/pgpPublic.txt
Advertisement
Have you included <string> ?
Have you included "string" before declaring the function?
Heh, didn't think of that, cheers!
---PGP public key: http://tacticalsites.com/~lorian/pgpPublic.txt

This topic is closed to new replies.

Advertisement