Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!samsung!dali.cs.montana.edu!milton!uw-beaver!uw-june!fred.cs.washington.edu!ginting From: ginting@fred.cs.washington.edu (Eka Namara Ginting) Newsgroups: comp.sys.mac.programmer Subject: Link error : multiply defined variables in THINK C Message-ID: <12725@june.cs.washington.edu> Date: 7 Aug 90 22:06:34 GMT Sender: news@cs.washington.edu Reply-To: ginting@fred.cs.washington.edu (Eka Namara Ginting) Organization: University of Washington Computer Science Lines: 19 Hi, I'm writing a program that has two source files (.c) that import a common .h file. This .h file includes another .h file that contains some variable declarations. When I try to run this program, THINK C compiler complains with "link failed : multiply defined variables" and gives me the list of variables that I declared in the second .h file (the one included by the other .h file). These variables are of type unsigned long, not initialized, nor of class static. Any of you care to give me some pointers on this ? I have succesfully compiled, linked, and run the program under MPW 3.0. I've tried to use "#ifndef" at the beginning of the .h file, but still got the same problem. Thanks a lot, -- EKa Ginting ginting@fred.cs.washington.edu