View Full Version : maya api: MRenderUtil

09 September 2005, 05:10 PM

i'm trying to get the name of a texture node using the MRenderUtil class but i keep getting this linking error. i pass the texture node obj to my method and call exactFileTextureName, but there is a linking error. does anyone know what i could be doing wrong? thanks in advance =)

#include <maya/MRenderUtil.h>


//texObj: file texture node
MStatus ClassA::getPixelColors(MString fileName, MObject &texObj)
MStatus stat = MS::kSuccess;
MString texNodePathName;
bool val;
val = MRenderUtil::exactFileTextureName(texObj, texNodePathName, &stat);

return stat;

ClassA.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl MRenderUtil::exactFileTextureName(class MObject const &,class MString &,class MStatus *)" (__imp_?exactFileTextureName@MRenderUtil@@SA_NABVMObject@@AAVMString@@PAVMStatus@@@Z) referenced in function "public: class MStatus __thiscall ClassA::getPixelColors(class MString,class MObject &)" (?getPixelColors@ClassA@@QAE?AVMStatus@@VMString@@AAVMObject@@@Z)

09 September 2005, 06:57 PM
ok, got it. OpenMayaRender.lib was missing.

CGTalk Moderation
09 September 2005, 06:57 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.