libtool vs ar for creating a static library (xcode linker)
问题 Creating a static library on Mac 10.5 with xcode via libtool and with ar via the command line both generate a libMainProject.a file however, when trying to use the one generate by libtool to link into a xcode application I end up with multiple message like "vtable for project1 referenced from: _ZTV27project1$non _lazy _ ptr in libMainProject.a(project1.o)" Using the ar one is totally fine and links correctly. I have tried the addition of the -c option to the libtool while linking but that