我们正在利用海合会的有预谋的负责人开展我们的项目,并建设这样的领导:
gcc $(CFLAGS) precompiledcommonlib.h
现在,我把该项目建设在10.6号行动之上,并试图像现在这样利用所有建筑建筑的修饰特征:
gcc $(CFLAGS) -c -arch i386 -arch x86_64 commonlib.c
然而,这似乎不利于有预谋的负责人:
gcc $(CFLAGS) -arch i386 -arch x86_64 precompiledcommonlib.h
Undefined symbols for architecture i386:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can t open input file: /var/folders/z1/z1A0sPkqGDyPrZWo9ysVK++++TI/-Tmp-//cc3W2gwd.out (No such file or directory)
Edit: As Mark pointed out as per XCode the precompiled header has to be built separately for each architecture, so my question is rather if there is any way to have gcc use the right precompiled header when building universal objects.
我确实相信,我可以像锡德这样的完全分开建造每个建筑,但我会利用同时建造这些建筑的可能性,而不必与不同的建筑组合相邻。