At 7:58 PM +0200 28/5/04, Adriaan van Os wrote:
Grant Jacobs wrote:
1. 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 ?
Thanks for that. I vaguely recalled you writing something about some options to do with prebinding but I couldn't find any message with 'prebind' in my archive of gpc posts. Is this documented somewhere btw? Its not in gpc's PDF help file. I'm not linking any libraries explicitly (yet); any ones that gpc are linking in are done whatever way it does them...
2. 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".
Ta, missed that one when scanning the options. Grant -- ------------------------------------------------------------------- Grant Jacobs Ph.D. BioinfoTools ph. +64 3 478 0095 (office, after 10am) PO Box 6129, or +64 25 601 5917 (mobile) Dunedin, gjacobs@bioinfotools.com NEW ZEALAND. Bioinformatics tools: deriving knowledge from biological data Bioinformatics tools - software development - consulting - training Check out the website for more details: http://www.bioinfotools.com The information contained in this mail message is confidential and may be legally privileged. Readers of this message who are not the intended recipient are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immed- iately and destroy the original message. This applies also to any attached documents.