Grant Jacobs wrote:
- The error indicates (to me) that the compiler thinks its generating
an enormous code or that the linker/loader is doing strange things. Its not *that* big! Any ideas? I'm developing this on OSX 10.2.8. (I can't locate a la_symbol_ptr in the source code, btw.)
e.g.
/usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind)
Well, did you try to disable prebinding by passing "-Wl,-noprebind" on the command line ? What if you pass "-Wl,-prebind_allow_overlap" or "-Wl,-prebind_all_twolevel_modules" or "-Wl,-noprebind_all_twolevel_modules" ? Are you, by the way, linking with dynamic libraries ?
- I've been warned about using underscores at the end of identifiers.
Obviously I can rename them, but there is a reason for this naming. Does this really do any harm? I can understand issues with underscores at the start of identifiers, but at the end?
Just pass "-Wno-underscore".
Regards,
Adriaan van Os