为什么makefile通过不了?
g++ -o main main.o Person.o Worker.o
ld: warning: ignoring file Person.o, file was built for unsupported file format ( 0x43 0x50 0x43 0x48 0x01 0x0C 0x00 0x00 0xF6 0x09 0x00 0x00 0x0B 0x82 0x67 0x42 ) which is not the architecture being linked (x86_64): Person.o
Undefined symbols for architecture x86_64:
"Person::Person()", referenced from:
Worker::Worker() in Worker.o
"Person::~Person()", referenced from:
Worker::Worker() in Worker.o
Worker::~Worker() in Worker.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1