home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3981 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.3 KB

  1. Path: sparky!uunet!mcsun!uknet!uos-ee!ainur.ee.surrey.ac.uk!css1rs
  2. From: css1rs@ainur.ee.surrey.ac.uk (Russell Smithers)
  3. Newsgroups: comp.unix.programmer
  4. Subject: undefined type of structure
  5. Message-ID: <1992Jul29.084933.25904@EE.Surrey.Ac.UK>
  6. Date: 29 Jul 92 08:49:33 GMT
  7. Sender: news@EE.Surrey.Ac.UK
  8. Organization: University of Surrey, Guildford, England
  9. Lines: 29
  10. X-Newsreader: Tin 1.1 PL4
  11.  
  12. Ive allready posted basicly the same question but it hasn't shown up
  13. here, so Im posting again.
  14.  
  15. Basicly im using GCC v1.4 and the compiler gives me this error :
  16.  
  17. <I am boromir> make
  18. gcc -g -DSUN -ansi  -target sun4 -c  manage.c
  19. manage.c: In function add_group:
  20. manage.c:38: invalid use of undefined type `struct group_buff'
  21. manage.c:39: invalid use of undefined type `struct group_buff'
  22. *** Error code 1
  23. make: Fatal error: Command failed for target `manage.o'
  24.  
  25. The structure in question has previously been defined as global
  26. and has been mad extern in all source files, this is the chunk of
  27. code I get the error on :
  28.  
  29.     34  add_group()
  30.     35  {
  31.     36          int ok=1;
  32.     37
  33.     38          pretty_string(group_buffer.Group_Name);
  34.     39          ok=group_exists(group_buffer.Group_Name);
  35.     40
  36.  
  37. Any help on this is greatly apprecited, if ive missed something
  38. basic then I would realy appreciate it fully or partly explained.
  39.  
  40. Thanks netters.
  41.