私はMayaアプリケーションの作成に不慣れで、パーティクルシステムを使用しようとしていますが、Macでコードをコンパイルしようとすると、次のエラーが発生します。
/Applications/Autodesk/maya2011/Maya.app/Contents/../../devkit/bin/mayald MAYA_ARCHES=" i386 x86_64 " MAYA_LOCATION="/Applications/Autodesk/maya2011/Maya.app/Contents" -o test test.o
Undefined symbols for architecture x86_64:
"MFnParticleSystem::~MFnParticleSystem()", referenced from:
_main in test.o
"MFnParticleSystem::MFnParticleSystem()", referenced from:
_main in test.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Undefined symbols for architecture i386:
"MFnParticleSystem::~MFnParticleSystem()", referenced from:
_main in test.o
"MFnParticleSystem::MFnParticleSystem()", referenced from:
_main in test.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/zz/zzzivhrRnAmviuee+++G0k++2Ug/-Tmp-//cc9f4J54.out (No such file or directory)
make: *** [test] Error 1
これはファイル内のコードです
#include <MFnParticleSystem.h>
int main(int, char**)
{
MFnParticleSystem fn;
}
SnowLeopardのMaya2011で実行しています。
私はこれがコンパイルされない理由に完全に固執しています。