Mail Archives: djgpp/1995/05/23/18:13:20
| From: | rick AT atype DOT com (Rick Mohr) | 
| Date: | Tue, 23 May 95 17:42:15 -0400 | 
| Original-Received: | by NeXT.Mailer (1.100) | 
| PP-warning: | Illegal Received field on preceding line | 
| Original-Received: | by NeXT Mailer (1.100) | 
| PP-warning: | Illegal Received field on preceding line | 
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu | 
| Subject: | Can't nest #import | 
There appears to be a bug with the djgpp cpp for Objective C.  (I downloaded  
the current version from oak.oakland.edu on 5/22/95; the cpp binary comes from  
gcc263bn.zip)
If file A #imports file B which #imports file C, file C is never imported.  For  
example:
        D:\users\rick\cpp>type foo.c
        #import "foo.h"
        main() {return FOO;}
        D:\users\rick\cpp>type foo.h
        #import "bar.h"
        D:\users\rick\cpp>type bar.h
        #define FOO 5
        D:\users\rick\cpp>cpp_gnat -lang-objc -Wno-import foo.c 
        # 1 "foo.c"
        # 1 "foo.h" 1
        # 1 "foo.c" 2
        main() {return FOO;}
The definition of FOO in bar.h is not seen.  Correct output achieved on other  
platforms is "main() {return 5;}".
Thanks for any help.
-Rick
---
Rick Mohr            Internet: rick AT atype DOT com
Archetype, Inc.
100 Fifth Avenue        voice: (617) 890-7544 x231
Waltham, MA  02154        fax: (617) 890-3661
- Raw text -