delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/18/12:00:26

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: making programs modular
Date: Mon, 18 May 1998 08:44:17 -0700
Organization: Alcyone Systems
Lines: 22
Message-ID: <35605751.497F975B@alcyone.com>
References: <355FA4E1 DOT C3E90E7D AT erols DOT com>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dan Chak wrote:

> When I used to just include options.h from bj.cc (and have everything
> from options.cc in options.h -- not the greatest programming practice,
> I
> know..) I would have no problems with linking because the #ifndef's
> were
> working properly.  Now what's gone wrong?  How do I get around this?

Hard to say without code to see.  Distill this to the smallest
reproducible program which exhibits the problem (e.g., one function
each), and then show us.

(Note that this is a C question, not a DJGPP question.)

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm:+37.20.07/-121.53.38
                                     \
   "Since when can wounded eyes see / If we weren't who we were"
                                   / Joi

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019