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 » Thu Sep 20, 2018 2:10 am

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 » Wed Oct 17, 2018 10:50 am

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 » Sun Dec 23, 2018 10:32 pm

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 » Thu May 02, 2019 4:47 am

Any update regarding the issue? Did u fix it?

Post Reply