Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


A problem with my class destructor...

This topic is 5693 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In my log class I am now getting this error: "CLog.cpp(36) : error C2600: ''CLog::~CLog'' : cannot define a compiler-generated special member function (must be declared in the class first)" Here is my class code (CLog.h):
class __declspec(dllexport) CLog
	FILE*	logfile;
	int		lineCount;
	int		lineLimit;
	char*	lineData[255];
	va_list arg[255];

	CEngine * Engine;

	CLog(CEngine *);

	bool screenOutput;
	bool Output(char* string, ...);
	void OutputScreen(char* string, va_list arg_list);
	void ResetScreen();

	bool Init();
	bool Shutdown();


And here is my code for the destructor (CLog.cpp):
I can''t seem to figure out what the problem is... anyone have an idea? Join the World Wide Revolution:

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!