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