🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

error C2065: 'asEP_OPTIMIZE_BYTECODE' : undeclared identifier

Started by
1 comment, last by WitchLord 17 years 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]
Advertisement
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.
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