When I try to build my project(im using VC++), I get this wierd error:

------ Build started: Project: DarkGDK Engine - By Tom, Configuration: Debug Win32 ------
Embedding manifest...
mt.exe : general error c10100b1: Failed to load file "..\Debug\DarkGDK Engine - By Tom.exe". The system cannot find the path specified.
Build log was saved at "file://c:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\DarkGDK Engine - By Tom\DarkGDK Engine - By Tom\Debug\BuildLog.htm"
DarkGDK Engine - By Tom - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And I don't think it even attempted to build before embedding the manifest, I have never gotten this error before, and why would it even need the .exe file when it's building???

Heres my code:

 * @file cbaseclass.h
 * The base class that all classes inherit

//! DECLARE_CLASS for class definitions,
//! it gives access to the class that called it
//! and the base class of that class
 /param classname the classname of the class calling it
 /param baseclassname the base class name of the class calling it
#define DECLARE_CLASS( classname, baseclassname ) \
	typedef classname ThisClass; \
	typedef baseclassname BaseClass; \
	virtual char const* _GetClassName( ){ return #classname } \
	virtual char const* _GetBaseClassName( ){ return #baseclassname; }

//! DECLARE_CLASS for class definitions,
//! it gives access to the class that called it
 /param classname the classname of the class calling it
#define DECLARE_CLASS_NOBASE( classname ) \
	typedef classname ThisClass; \
	virtual char const* _GetClassName( ){ return #classname; }

//! cBaseClass is the class that all class inherits, for id's 
//! and counting of objects.
class cBaseClass {
	/// returns count.
	int GetID(){ return ID; }
	/// returns ID.
	int GetCount(){ return count; }
	//! count a variable for the number of classes that
	//! have inherited this class
	static int count;
	//! id a variable given to each class that has inheritetd it
	//! and it increments every tme a class is instanced
	int ID;

/*! cBaseClass::cBaseClass()
 * the constructor, it adds one to count
 * and assignes the current count to the ID
 * @see count
 * @see ID
 * @see GetID()
 * @see GetCount()
	ID = count;

cBaseClass::count = 0;

Any help would be apprecited :)

9 Years
Discussion Span
Last Post by thelamb

Build->Rebuild All

Especially as it seems to think something exists, when it clearly doesn't.


This is not an error that comes up because of syntax errors in your code.

You shouldn't write the class implementation in the .h file, the compiler is expecting to find a cbaseclass.cpp file somewhere, but it doesn't.
So create a cbaseclass.cpp, include the .h file and copy/paste the implementation into this file.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.