home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16338 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!think.com!ames!agate!usenet.ins.cwru.edu!news.ysu.edu!do-not-reply-to-path
  3. From: ae007@yfn.ysu.edu (Daniel Newcombe)
  4. Subject: Please help me with my #include mess-up.
  5. Message-ID: <1992Nov11.172840.5540@news.ysu.edu>
  6. Sender: news@news.ysu.edu (Usenet News Admin)
  7. Nntp-Posting-Host: yfn.ysu.edu
  8. Organization: Youngstown State University/Youngstown Free-Net
  9. Date: Wed, 11 Nov 1992 17:28:40 GMT
  10. Lines: 24
  11.  
  12.  
  13. Well here is my problem:  I have these modules:
  14.   MOSTYPES.H - defines several types I am using in this
  15.     project, such as boolean, and a few structs and typedefs
  16. QUEUE.H - the header file for my queue class which has a few
  17.    inline things in it.
  18.    This has to include mostypes.h because it needs boolean.
  19. QUEUE.CPP - the rest of the code for the queues.  It includes
  20.   queue.h
  21. MAINMOD.CPP - my main module.  It includes QUEUE.H and MOSTYPES.H.
  22. When I compile I get a whole mess of errors saying that all sorts
  23. of things in MOSTYPES.H are redefined.  There are a lot more        
  24. modules that are going to have to use mostypes.h before it's   
  25. all over with.
  26.  
  27. My question - how do I get this to compile, while still keeping
  28. the code portable and re-usable???
  29.  
  30. thanks...  -Dan
  31. -- 
  32.     -Dan Newcombe
  33. Internet Address:  STDN@VM.MARIST.EDU
  34. Youngstown Freenet: ae007@yfn.ysu.edu
  35. GOAL: To put the world on 3.5" diskettes...  :)
  36.