I seem to recall this subject coming up before but I don't remember the
solution. The FAQ isn't exactly answering it, either.
Anyway, if I try to make this X app by compiling with -c option first
and then linking separately, I get the error message:
/usr/lib/crt0.o: Undefined symbol _main referenced from text segment.
If I compile and link with one step, I don't get the error message.
From the FAQ I know that this crt0 has to do something with determining
what shared libs are used BEFORE the main() is called. Is there some
header file I need to include to make my compiles and links work
separately? I seem to recall the answer was yes, but don't recall which
header file.
Sorry if this is old hat, so please respond by e-mail if you will.
Thanks,
Joe Pannon