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