home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!cis.ohio-state.edu!espresso.boeing.COM!seanc
- From: seanc@espresso.boeing.COM (Sean Callahan 5-3309)
- Subject: protoize bug
- Message-ID: <9207282325.AA06685@espresso.bcs.eca>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Tue, 28 Jul 1992 23:24:46 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 39
-
- I have an approximately 2000 line C sourcefile. It has a globally scoped
- external variable defined in the file as shown below.
-
- AllIntersect CMAISP;
-
- where AllIntersect is defined in an included header file as
-
- typedef struct AllIntersect AllIntersect;
-
- struct AllIntersect {
- IheaderP head, tail;
- int total;
- int total_headers;
- };
-
- CMAISP is used throughout the file over 100 times. No errors are reported
- until line 1508 where protoize complains that
-
- `CMAISP' undeclared (first use this function)
-
- and protoize fails.
-
- I can fix the problem by inserting
-
- extern AllIntersect CMAISP;
-
- above the function where the complaints begin...but that is obviously
- not acceptable. I am converting a program consisting of 60 large
- source files!
-
- If you can be of any help I would greatly appreciate it!
-
- The version is 2.2.2.2
-
- Thankyou,
- Sean Callahan
- seanc@atc.boeing.com
-
-
-