| |||
| Home > Accessing Image Symbols > Accessing linker-defined symbols > Importing linker-defined symbols | |||
There are two ways to import linker-defined symbols into your C or C++ source code. Use either:
extern unsigned int symbol_name;
or:
extern void *symbol_name;
If you declare a symbol as an int, then
you must use the address-of operator to obtain the correct value
as shown in Example 4.2.