Darren New <dne### [at] san rr com> wrote:
> Hence my clarification. It's obviously a valid .h file. But is it a valid .c
> file?
According to gcc, no (although it does compile it nevertheless):
> touch test.c
> ls -l
total 0
-rw-r--r-- 1 warp users 0 2009-08-29 21:18 test.c
> gcc -pedantic -c test.c
test.c:1: warning: ISO C forbids an empty source file
warp@a8:~/tmp/hops>ls -l
total 4
-rw-r--r-- 1 warp users 0 2009-08-29 21:18 test.c
-rw-r--r-- 1 warp users 684 2009-08-29 21:18 test.o
--
- Warp
Post a reply to this message
|