Put this in t.h:

        #include <math.h>

Put this in t.c:

        #include "t.h"

Now make sure t.c does not end with a newline, for instance

        tr -d \\n < t.c > t.c.1 && mv t.c.1 t.c

Next, compile t.c and see what actually gets included:

        cc -H -c t.c

then add a newline to the end of t.c and try that again. Question: is that 
correct behavior?

This got triggered here by some KDE SVN files which #include a moc file as the 
last non-newline-terminated line in the file, which then fails with an error 
message like "there is extra text on the line".

[ade]

Reply via email to