Skip to main content
GameDev.net gamedev.net
🔒 Locked

What is this error?

Started by The C modest god Feb 23, 2005 at 2:47 PM 2 replies 400+ views
Original Post
The C modest god
The C modest god
I have the following code:

class FilesGenerator {
	public:
		FileBMPIntoARR (string sourcePath, string targetPath);
		FileBMPIntoTransARR (string colorSourcePath, string alphaSourcePath, string targetPath);
		FileBMPAnimationIntoTransARR (string colorSourcePath, string alphaSourcePath, DWORD ImagesAmount, string targetPath);

		FilesGenerator (SpriteDrawer & SDrawer); // <= Error
	private:
		Sprite SpriteImage;
		RGBImage RGBColorImage, RGBAlphaImage;
		TransImageSource TransImage;
};
I get the following error:

e:\projects\engine2\v0\world.h(18) : error C2629: unexpected 'class FilesGenerator ('
Why do I get this error? and how can I fix it?
It's all about the wheel.Never blindly trust technoligy.I love my internal organs.Real men don't shower. Quote: Original post by Toolmaker Quote:
antareus
antareus
You have an error before that.

And your functions don't have return types; that code shouldn't compile.
--God has paid us the intolerable compliment of loving us, in the deepest, most tragic, most inexorable sense.- C.S. Lewis
Evil Steve
Evil Steve
Quote:
Original post by antareus
You have an error before that.

And your functions don't have return types; that code shouldn't compile.
Actually, it'll compile, but with a bunch of warnings saying it assumes an int return type.

As antareus said, you've got an error before it. Possibly missing a semicolon at the end of a statement.
The C modest god
The C modest god
I had a cycle includes, now I fixed it.
It's all about the wheel.Never blindly trust technoligy.I love my internal organs.Real men don't shower. Quote: Original post by Toolmaker Quote:

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.