What does the gcc error DISP16 mean?
This is a linker error. It means that you have called a function that does not exist, or your code segment is too large. Check your code for typos first (especially the API calls, since they tend to be long.) From Derek Kwan: Most of the time when you have this error, you better check the CaSe? of your functions. For example if you call strstr as in regular C function you will have this error. You have to use StrStr? as in palmpilot developer manual. For me everytime when I have a typo in the function which doesn’t exist or the CaSe? of the function doesn’t match, I will have this error. Of course YMMV. 🙂 From Ian Goldberg: The DISP16 error means that a (16-bit displacement) branch could not be constructed, for one of two reasons: 1) Branches cannot span more than 32K, so if you have more than that much code, a refence to a symbol at the end of your code by something at the beginning will give this error. If you get a DISP16 for “bhook_start” or something similar, this is the problem.