home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / informix / 1913 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.7 KB

  1. Path: sparky!uunet!gumby!destroyer!gatech!emory!turq.b8.ingr.com
  2. From: randy@turq.b8.ingr.com (Randy Paries)
  3. Newsgroups: comp.databases.informix
  4. Subject: Help In creating a Struct in a .ec file
  5. Message-ID: <9512@emory.mathcs.emory.edu>
  6. Date: 11 Sep 92 15:58:04 GMT
  7. Sender: walt@mathcs.emory.edu
  8. Reply-To: randy@turq.b8.ingr.com (Randy Paries)
  9. Lines: 40
  10. X-Informix-List-ID: <list.1437>
  11.  
  12.  
  13.  Hi,
  14.      I am looking for some help in creating a Global structure
  15.      in a share.h file.
  16.  
  17.      If I create the struct in a module ie
  18.      $struct test{
  19.          int num;
  20.          char str[5];
  21.      };
  22.  
  23.      $struct test *try;
  24.  
  25.      This works fine. But If I move this struct into an .h file
  26.      I can't get it to compile. 
  27.  
  28.      If I try the above syntax when I compile I get 
  29.  "share.h", line 13: this declaration has no storage class or type specifier
  30.    $struct test{
  31.          
  32.      And If I leave off the "$" then it compiles but when I try to 
  33.      define one in the module: 
  34.      $struct test *try; 
  35.      
  36.      it fails on finding test.
  37.  
  38.  
  39.      Any Help??
  40.      Thanks
  41.  -- 
  42.  ------------------------------------------------------------------------     
  43.   |--------------|            #          -------------------------------|
  44.   | Randy Paries |       ____/|   _______| b8!turq!randy                |
  45.   | x6191   cr041|        \ oO|  /       | uunet!ingr!b8!turq!randy     |
  46.   |--------------|    ##   | ~|_/ ##     | randy@turq.b8.ingr.com       |
  47.                      ####  `-U'  ####    |Intergraph, Huntsville Alabama|
  48.                         \\  ||  //       ================================
  49.   TEAM "CATS"             \/  \/ ples exuse al speln mstaks
  50.  "Smells like team spirit" |  | 
  51.  ------------------------------------------------------------------------     
  52.