home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12997 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  2.0 KB

  1. Path: sparky!uunet!olivea!apple!apple!keith@taligent.com
  2. From: keith@taligent.com (Keith Rollin)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Function missing from MPW C library?
  5. Message-ID: <70437@apple.Apple.COM>
  6. Date: 24 Jul 92 19:38:37 GMT
  7. References: <1992Jul23.132750.12392@newstand.syr.edu>
  8. Sender: daemon@Apple.COM
  9. Organization: Taligent
  10. Lines: 43
  11.  
  12. In article <1992Jul23.132750.12392@newstand.syr.edu>,
  13. mcnichol@terminator.psy.syr.edu (Brendan T. McNichols) writes:
  14. > I am getting the following error message when building a project using  
  15. > MPW C:
  16. > ### Link: Error: Undefined entry, name: (Error 28) "str2dec"
  17. >   Referenced from: _doscan in file: Alliance Drive  
  18. > :Development:MPW:Libraries:CLibraries:CLib881.o
  19. > ### Link: Errors prevented normal completion.
  20. > ### MPW Shell - Execution of KLSyn88.makeout terminated.
  21. > ### MPW Shell - Execution of BuildProgram terminated.
  22. > It seems to me that this means that the function "str2dec" is missing  
  23. > from the CSANELib881.o library.  (It is declared in SANE.h.)  I am new  
  24. > using MPW and I'm not sure if there's something here that I should have  
  25. > done but didn't.  Does anyone know how to fix this problem?  Is str2dec  
  26. > located in some other library?  Can I get the code for str2dec and  
  27. > include it in the CSANELib881.o library?
  28.  
  29. There seem to b versions of str2dec in {Libraries}Runtime.o and
  30. {PLIbraries}PasLib.o. Whenever I have problems finding a library routine, I use
  31. the following script.
  32.  
  33. Set Exit 0
  34. Set SearchExpression "`Request "Enter regular expression" || Echo '""'`"
  35. Exit if "{SearchExpression}" == ""
  36. For folder in "{Libraries}" "{PLibraries}" "{CLibraries}"
  37.     Echo "Searching in {folder}"
  38.     For file In `files -f -s -t "OBJ " "{folder}"`
  39.         DumpObj -mods "{file}" | Search -nf /{SearchExpression}/ opt-3opt3 Dev:Null
  40.         If {status} == 0
  41.             Echo "DumpObj opt-d"{file}opt-d" -m {SearchExpression}"
  42.         End
  43.     End
  44. End opt-wopt-w "{WorkSheet}"
  45. Set Exit 1
  46.  
  47.  
  48. --
  49. Keith Rollin
  50. Phantom Programmer
  51. Taligent, Inc.
  52.