Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsk!ech From: ech@cbnewsk.att.com (ned.horvath) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C: Trouble with multiply #included files Message-ID: <1991Apr16.172023.10305@cbnewsk.att.com> Date: 16 Apr 91 17:20:23 GMT References: <1991Apr15.002722.18346@eddie.mit.edu> Organization: AT&T Bell Laboratories Lines: 18 From article <1991Apr15.002722.18346@eddie.mit.edu>, by rabbit@eddie.mit.edu (Warren J. Madden): > Greetings, netfolk. > I have been working on a program in THINK C 4.0.2, and have > encountered a problem with several include files I'm using. The manual > says (in reference to TCL header files) that if you want a file to only be > included once, #define _H_filename, where filename is the name of the > include file. I attempted to do this with other include files, but started > getting multiply declared variable problems popping up at link time. The _H_name is case sensitive. Make sure all the #include "name.h" lines EXACTLY match the spelling in #define _H_name. Yes, I got bit by this too... =Ned Horvath= ehorvath@attmail.com