My first plugin for Maya 2022 C++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, please help me to find the error!!!
My code:
#include <maya/MFnPlugin.h>
#include <maya/MGlobal.h>
MStatus initializePlugin(MObject obj)
{
const char pluginVendor = "Victor";
const char pluginVersion = "0.1";
MFnPlugin fnPlugin(obj, pluginVendor, pluginVersion);
MGlobal::displayInfo("Oki Doki!");
return (MS::kSuccess);
}
MStatus uninitializePlugin(MObject obj)
{
MGlobal::displayInfo("ok!!!");
return (MS::kSuccess);
}
Error:
Build started...
1>------ Build started: Project: MayaCppPlugin, Configuration: Debug x64 ------
1>pluginMain.cpp
1>C:\Program Files\Autodesk\Maya2022\devkit\include\maya\MTypes.h(575,10): fatal error C1083: Cannot open include file: 'sys/stat.h': No such file or directory
1>Done building project "MayaCppPlugin.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
how can I find "sys/stat.h" ??