compiling xmas.c

G. Matthew Rice matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org
Fri Dec 23 15:27:02 UTC 2005


Paul Sutton <zen14920-1HOZaDBbGgxaa/9Udqfwiw at public.gmane.org> writes:
> when i type cc -c xmas.c I get the following error,

You could also get away with: make xmas


> xmas.c: In function 'main':
> xmas.c:57: warning: incompatible implicit declaration of built-in function
> 'exit'
> xmas.c:58:2: warning: no newline at end o
> 
> output from uname -a is as follows
> Linux duron1600 2.6.14-kanotix-6 #1 PREEMPT Thu Dec 15 17:42:57 CET 2005 i686
> GNU/Linux

I just did the above (works out to 'cc     xmas.c   -o xmas') on:

2.4.20-28.7  (RH 7.x)
2.6.10-5-386 (ubuntu 5.04)

and it works.  To get rid of those warnings, change 'exit' to 'return' and
put a newline on the last line of the file (just go to the end and hit
'enter').


>  Also my router managed to disconnect from the net, when I rebooted from
>  windows to linux to try this program out,  I ended up having to turn the
>  router off, and the on again to fix,  is this an indication of hardware
>  problems,  my router is not on 24/7,  but only on when the computer is on.

You've downloaded the xmas program and incurred the wrath of the ghost of
hardware past.

There shouldn't be any relationship between your computer going up and down
and the router (unless you left some details out).  Does your router
automatically reconnect when the connection goes down?

Or is it possible that the router is  dhcp server, too, and only giving out
info to Windows for some reason?

Regards,
-- 
g. matthew rice <matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org>           starnix, toronto, ontario, ca
phone: 647.722.5301 x242                                  gpg id: EF9AAD20
http://www.starnix.com              professional linux services & products
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list