ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Суббота
18 мая
254107 Топик полностью
vvb_ (17.05.2011 12:49, просмотров: 1) ответил vvb_ на Из MULTI#pragma weak foo Defines foo as a weak symbol. This #pragma may be used in either of the following ways:If foo is declared as an external reference in filename:#pragma weak fooextern int foo;and foo is not defined in any other file, then
Разделил слова "Из MULTI" и весь последующий текст нажатием , однако, получил не то что хотел. Попробую повторить.Из MULTI#pragma weak foo Defines foo as a weak symbol. This #pragma may be used in either of the following ways:If foo is declared as an external reference in filename:#pragma weak fooextern int foo;and foo is not defined in any other file, then the address of foo is set to zero (or, in the case of projects that use PIC or PID, 0 plus the adjustment for the text or data segment offset). This will prevent an undefined symbol linker error.If foo is defined in filename:#pragma weak fooint foo = 1;and a definition of foo appears in any other file, then that other definition will have priority, and the definition in filename will be treated as if it were an external reference.