Maya 응용 프로그램을 새로 작성하고 입자 시스템을 사용하려하지만 Mac에서 코드를 컴파일하려고 할 때마다 다음 오류가 발생합니다. MFnParticleSystem을 코드에 추가하면 Maya 응용 프로그램 코드가 컴파일되지 않습니다.
/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에서 실행하고있는 코드입니다.
나는 이것이 왜 컴파일되지 않는지 완전히 고집합니다.
컴파일하고 그냥 링크하지 않습니다. –