home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gumby!destroyer!gatech!emory!turq.b8.ingr.com
- From: randy@turq.b8.ingr.com (Randy Paries)
- Newsgroups: comp.databases.informix
- Subject: Help In creating a Struct in a .ec file
- Message-ID: <9512@emory.mathcs.emory.edu>
- Date: 11 Sep 92 15:58:04 GMT
- Sender: walt@mathcs.emory.edu
- Reply-To: randy@turq.b8.ingr.com (Randy Paries)
- Lines: 40
- X-Informix-List-ID: <list.1437>
-
-
- Hi,
- I am looking for some help in creating a Global structure
- in a share.h file.
-
- If I create the struct in a module ie
- $struct test{
- int num;
- char str[5];
- };
-
- $struct test *try;
-
- This works fine. But If I move this struct into an .h file
- I can't get it to compile.
-
- If I try the above syntax when I compile I get
- "share.h", line 13: this declaration has no storage class or type specifier
- $struct test{
-
- And If I leave off the "$" then it compiles but when I try to
- define one in the module:
- $struct test *try;
-
- it fails on finding test.
-
-
- Any Help??
- Thanks
- --
- ------------------------------------------------------------------------
- |--------------| # -------------------------------|
- | Randy Paries | ____/| _______| b8!turq!randy |
- | x6191 cr041| \ oO| / | uunet!ingr!b8!turq!randy |
- |--------------| ## | ~|_/ ## | randy@turq.b8.ingr.com |
- #### `-U' #### |Intergraph, Huntsville Alabama|
- \\ || // ================================
- TEAM "CATS" \/ \/ ples exuse al speln mstaks
- "Smells like team spirit" | |
- ------------------------------------------------------------------------
-