Advertisement

error C2065: 'asEP_OPTIMIZE_BYTECODE' : undeclared identifier

Started by June 30, 2007 03:29 PM
1 comment, last by WitchLord 17 years, 5 months ago
...AngelScript\as_scriptengine.cpp(177) : error C2065: 'asEP_OPTIMIZE_BYTECODE' : undeclared identifier Has updated All source codes. Began to compile - this mistake jumps out. I can not understand in what business. Bug VC++6 can? (WinXP,VC++6Standart). angelscript.h:

[skip]
// Enumerations and constants

// Engine properties

const asDWORD asEP_ALLOW_UNSAFE_REFERENCES = 1;	// Default: false
const asDWORD asEP_OPTIMIZE_BYTECODE       = 2;	// Default: true
[skip]
as_scriptengine.cpp:

[skip]
int asCScriptEngine::SetEngineProperty(asDWORD property, asPWORD value)
{
	if( property == asEP_ALLOW_UNSAFE_REFERENCES )
		allowUnsafeReferences = value ? true : false;
	else if( property == asEP_OPTIMIZE_BYTECODE ) //<<<== ....AngelScript\as_scriptengine.cpp(177) : error C2065: 'asEP_OPTIMIZE_BYTECODE' : undeclared identifier
		optimizeByteCode = value ? true : false;
	else
		return asINVALID_ARG;

	return asSUCCESS;
}
[skip]
Apologize, has understood. Has simply confused with directories. Has forgotten that when that copied angelscript.h in VisualStudio ... \include.

The request to moderators to remove a theme.
Advertisement
Glad you worked it out.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement