Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!boulder!jdm From: jdm@boulder.Colorado.EDU (James D. Meiss) Newsgroups: comp.sys.mac.programmer Subject: Smart Link Problems Summary: Think C smart linker "causes" code to crash Keywords: Think C, Link, ANSI Message-ID: <24854@boulder.Colorado.EDU> Date: 16 Aug 90 20:19:32 GMT Sender: news@boulder.Colorado.EDU Reply-To: jdm@boulder.Colorado.EDU (James D. Meiss) Organization: University of Colorado, Boulder Lines: 16 I've got a simple code which uses the ANSI and MacTraps library. I am using Think C 4.0.2, and it runs fine under the debugger. It also works fine when I compile it with the "Smark Link" turned off. When I turn on Smart Link, the code crashes on Launch before it even gets to the first statement (I put a "Debugger()" trap in to see if it got to line 2). I use only the sprintf, atoi, and strlen routines, so naturally my "unsmart" linked code is considerably larger... Has this happened to anyone? Any suggestions appreciated. Jim Meiss Program in Applied Mathematics jdm@boulder.colorado.edu