7

Вопрос по c++, cmake – связывание саморегистрационной, абстрактной фабрики

Я работал и тестировал саморегистрационную абстрактную фабрику на основе описанной здесь: https://stackoverflow.com/a/582456 [https://stackoverflow.com/a/582456] Во всех моих тестовых случаях он работает как шарм, и предоставляет функции ...

1 ответ

10

Error: User Rate Limit Exceeded

The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which was undefined in some object which appeared before the archive on the command line, the linker will include the appropriate file(s) from the archive. However, an undefined symbol in an object appearing later on the command line will not cause the linker to search the archive again.

Error: User Rate Limit Exceededg++ -Wl,-whole-archiveError: User Rate Limit Exceededg++ -all_load.

Error: User Rate Limit Exceeded

g++ -o testFactory -Wl,-whole-archive libbase.a -Wl,-no-whole-archive main.cpp

Error: User Rate Limit Exceeded-Wl,-no-whole-archiveError: User Rate Limit Exceeded

Похожие вопросы