Error: Identifier is not defined

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
Michaelson
Posts: 28
Joined: Sat Jan 13, 2018 8:34 pm
Location: Shanghai Jiao Tong University

Error: Identifier is not defined

Post by Michaelson »

hello everyone,
I get following error while loading .cpp and .h file of any materials,
ERROR:Identifier "OPS_PRINT_PRINTMODEL_MATERIAL" not defined
**************************************************************************************
void
ElasticOrthotropicMaterial::Print (OPS_Stream &s, int flag)
{
if (flag == OPS_PRINT_PRINTMODEL_MATERIAL) {
s << "Elastic Isotropic Material Model" << endln;
s << "\tEx: " << Ex << endln;
s << "\tEy: " << Ey << endln;
s << "\tEz: " << Ez << endln;
s << "\tvxy: " << vxy << endln;
s << "\tvyz: " << vyz << endln;
s << "\tvzx: " << vzx << endln;
s << "\tGxy: " << Gxy << endln;
s << "\tGyz: " << Gyz << endln;
s << "\tGzx: " << Gzx << endln;
s << "\trho: " << rho << endln;
}

if (flag == OPS_PRINT_PRINTMODEL_JSON) {
s << "\t\t\t{";
s << "\"name\": \"" << this->getTag() << "\", ";
s << "\"type\": \"ElasticOrthotropicMaterial\", ";
s << "\"Ex\": " << Ex << ", ";
s << "\"Ey\": " << Ey << ", ";
s << "\"Ez\": " << Ez << ", ";
s << "\"nuxy\": " << vxy << ", ";
s << "\"nuyz\": " << vyz << ", ";
s << "\"nuzx\": " << vzx << ", ";
s << "\"Gxy\": " << Gxy << ", ";
s << "\"Gyz\": " << Gyz << ", ";
s << "\"Gzx\": " << Gzx << ", ";
s << "\"rho\": " << rho << "}";
}
}
********************************************************************************************
What might be the problem
any kinda help will be appropriated
thanks :)
Allaaldeen
Posts: 13
Joined: Mon May 09, 2016 2:39 pm

Re: Error: Identifier is not defined

Post by Allaaldeen »

Did you solve this problem?
Michaelson
Posts: 28
Joined: Sat Jan 13, 2018 8:34 pm
Location: Shanghai Jiao Tong University

Re: Error: Identifier is not defined

Post by Michaelson »

VS 2010 solved most of the errors for me :)
steveG
Posts: 1
Joined: Thu May 02, 2019 4:25 am

Re: Error: Identifier is not defined

Post by steveG »

Any update regarding the issue? Did u fix it?
Post Reply