home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!uos-ee!valar.ee.surrey.ac.uk!css1rs
- From: css1rs@valar.ee.surrey.ac.uk (Russell Smithers)
- Newsgroups: comp.lang.c
- Subject: undefined type (structure)
- Message-ID: <1992Jul31.120948.15769@EE.Surrey.Ac.UK>
- Date: 31 Jul 92 12:09:48 GMT
- Sender: news@EE.Surrey.Ac.UK
- Organization: University of Surrey, Guildford, Surrey, UK. GU2 5XH
- Lines: 29
- X-Newsreader: Tin 1.1 PL4
-
- I have posted this allready in comp.unix.programmers, but no one
- has replied or posted, so I thought i'd ask here :
-
- 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.
-