From: Victor Viudez Gonzalez Newsgroups: comp.os.msdos.djgpp Subject: I'm a Newbie with DJGPP! Date: Mon, 25 May 1998 15:41:19 +0200 Organization: Universitat Politecnica de Catalunya Lines: 69 Message-ID: <356974FF.D01A46C@est.fib.upc.es> NNTP-Posting-Host: upcremot63.upc.es Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------88CF11CA8C3A18738BB2E47A" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk --------------88CF11CA8C3A18738BB2E47A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sorry guys, but I'm a newbie using DJGPP, and I have a little problem. That's it: I have a file.h like this: typedef struct TAD{ int code; struct TAD next; struct TAD prior; . . }Tad; Ok, now I would use this new structure in my program... I write an #include "file.h", right. But the gcc compiler says that typedef struct is not valid. How I can define a new type????? Thanks a lot!! PS.: Ah! I use Rhide! --------------88CF11CA8C3A18738BB2E47A Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Sorry guys, but I'm a newbie using DJGPP, and I have a little problem. That's it:

         I have a file.h like this:

                        typedef struct TAD{
                                              int code;
                                              struct TAD next;
                                              struct TAD prior;
                                              .
                                              .
                                              }Tad;

           Ok, now I would use this new structure in my program... I write an
      #include "file.h", right. But the gcc compiler says that typedef struct is not valid.

            How I can define a new type?????

Thanks a lot!!

PS.: Ah! I use Rhide! --------------88CF11CA8C3A18738BB2E47A--