> I have a printf("Starting\n"); statement as the first line in main().
> It never gets there.
> I compile each module as gcc -c -o module.o module.c
> and link by: gcc module1.o module2.o ... -o newprog
> In reading the FAQs, it seems that it could be due to rewritable strings...
> but the code never even makes it to main(), so I doubt it..
> Any ideas?
Try replacing the printf("Starting\n") with a
fprintf(stderr, "Starting\n") and see what happens.
If you see the Starting printed, try to figure out what is happening
by using a de*.
If you don't see it, it probably is a bug in your own code.
In this case, I suggest you check your code very carefully.
You can also try to strip down the latest modules you added until the
problem goes away. This way you can get at least an idea what the
offending code is.
Hopes this helps,
Koen D'Hondt.
--
----------------------------------------------------------------------
_/_/_/_/ _/_/_/_/ _/_/_/_/
_/ _/ _/ _/ _/ Ripley Software Development
_/ _/ _/ _/ _/ Roland Holstlaan 229
_/_/_/_/ _/_/_/_/ _/ _/ 2624 HG Delft, The Netherlands
_/ _/ _/ _/ _/ http://www.veryComputer.com/~ripley
_/ _/_/_/_/_/ _/_/_/_/ tel: (++31) (0) 15 2567785
----------------------------------------------------------------------