Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!mit-eddie!eddie.mit.edu!rabbit From: rabbit@eddie.mit.edu (Warren J. Madden) Newsgroups: comp.sys.mac.programmer Subject: THINK C: Trouble with multiply #included files Message-ID: <1991Apr15.002722.18346@eddie.mit.edu> Date: 15 Apr 91 00:27:22 GMT Sender: news@eddie.mit.edu (Usenet News) Reply-To: rabbit@eddie.mit.edu (Warren J. Madden) Organization: MIT EECS/ECF Facility, Cambridge Mass Lines: 20 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. Does this feature only work with TCL header files? What is the means by which it is implemented? Right now I'm working around the problem by emulating the feature using #ifdef, but I'd like to know if I should be doing it some other way. Thanx in advance, Warren J. Madden rabbit@eddie.mit.edu