home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!sernews!rocky.raleigh.ibm.com!crg
- From: crg@rocky.raleigh.ibm.com (Chuck Grissom)
- Subject: Re: Fix : ThinkC app won't run standalone (bug in smart link!?)
- Sender: news@sernews.raleigh.ibm.com
- Message-ID: <1992Dec17.143701.19170@sernews.raleigh.ibm.com>
- Date: Thu, 17 Dec 1992 14:37:01 GMT
- References: <cmcclary-151292113831@mcclary-mac.ucs.indiana.edu> <steve.herman-161292132205@128.158.4.199> <1992Dec16.215017.16222@usl.edu>
- Nntp-Posting-Host: rocky.raleigh.ibm.com
- Organization: IBM, Research Triangle Park, North Carolina
- Lines: 23
-
- In article <1992Dec16.215017.16222@usl.edu>, pvl1779@usl.edu (Leach Phuong V) writes:
- |>
- |> First thanks to those who responded.
- |>
- |> The problem seems to be in the linker. I turned the "smart link" option
- |> off when building the application, and it runs fine now.
- |>
- |> The app was crashing on a sprintf() call. Earlier calls worked fine, but
- |> at some point in the program, sprintf() got stepped on and no longer
- |> worked. It seems to me that the "smart" linker has a possible bug.
- |> Does this seem like a reasonable assumption to you?
- |>
- |> Go figure,
- |> Robb
-
- Well, bugs in the linker are possible...but...many, many times I have heard
- a C programmer claim that the bug in his program must be due to a compiler bug
- only to find after further debugging that it's in his code after all. As for
- me, I assume every bug is MINE unless I can point to the exact problem in the
- compiler/linker. If it is such a problem, you should be able to reproduce it
- with very simple code. Otherwise, keep looking for those pointer errors!
-
- Chuck
-