home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2388 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: SAS/C and Memlib Problems
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DLyKHB.321@unx.sas.com>
  7. Date: Mon, 29 Jan 1996 19:51:11 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <4ed373$3o6@due.unit.no>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <4ed373$3o6@due.unit.no>, Anders Granli <granli@stud.unit.no> wrote:
  13. >Hello!
  14. >
  15. >I have a problem with using the Memlib routines (by Doug Walker) supplied with my
  16. >SAS/C 6.5. I have used these routines to debug my program for a long time. Now they
  17. >suddenly stop working. When I compile with the memlib, my program doesn't start at
  18. >all. No errors are given!
  19. >
  20. >I have included the right files, in the right order, I have linked with memlib. I
  21. >can't understand what is wrong...
  22. >
  23. >Does anybody have a clue?
  24.  
  25. Sounds like you have an old version of the compiler.  We shipped one version
  26. (was it 6.50?) which caused memlib to break because it assumed that the
  27. _STI routines were going to return a value.  We modified the compiler to
  28. return 0 for you if you declared the _STI function void, but did not 
  29. recompile memlib, so it failed.
  30.  
  31. To fix it, just make sure that you have the latest version of the compiler
  32. that your base release can handle (6.56 if you're at version 6.50 or above)
  33. and rebuild memlib from the source code.  You might want to change the
  34. _STI routine so that it has an "int" return value and returns 0.
  35.  
  36. By the way, you can debug this by using CPR with the -s (startup) option.
  37. CPR will stop before executing the first instruction, allowing you to 
  38. single-step through the startup code.
  39.  
  40. -- 
  41.   *****                    / walker@unx.sas.com
  42.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  43.  *|. o.| ||                \ AOL: weissblau
  44.   | o  |//     
  45.   ====== 
  46. Any opinions expressed are mine, not those of SAS Institute, Inc.
  47.  
  48.