Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uicsrd.csrd.uiuc.edu!hong From: hong@uicsrd.csrd.uiuc.edu Newsgroups: comp.sys.ibm.pc Subject: Separate Compilation in TurboC Message-ID: <42900068@uicsrd.csrd.uiuc.edu> Date: 21 Mar 90 08:12:00 GMT Lines: 15 Nf-ID: #N:uicsrd.csrd.uiuc.edu:42900068:000:563 Nf-From: uicsrd.csrd.uiuc.edu!hong Mar 21 02:12:00 1990 Hi, I have trouble porting a C program from UNIX to the TurboC. It contains several header files and source files. Some header files appear in more than one sources file. The source files are compiled separately. At link time, tcc or tlink complain that all variables in the above header files are defined more than once. The same program runs OK under UNIX using a similar makefile. Is there any EASY way to get around with this? I have the TurboC manual with me, but it doesn't seem helpful. How does MSC handle this problem? Thank in advance. Hong-Men Su