home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21043 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  2.1 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!usc!news.service.uci.edu!network.ucsd.edu!sdcc12!cs!whitney
  2. From: whitney@cs.ucsd.edu (Whitney Cunha)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Desperate MPW Questions!
  5. Message-ID: <43205@sdcc12.ucsd.edu>
  6. Date: 8 Jan 93 23:12:05 GMT
  7. Sender: news@sdcc12.ucsd.edu
  8. Followup-To: whitney@cs.ucsd.edu
  9. Organization: General Atomics, San Diego
  10. Lines: 35
  11. Nntp-Posting-Host: tartarus.ucsd.edu
  12.  
  13. I'm new to the Mac and I'm using MPW 3.2.3.  Please!  I need some answers to 
  14. these simple questions (just not simple to me) fast.  My boss is visiting my 
  15. desk every 5 minutes now....
  16.  
  17. 1) Why won't MPW C handle function parameters that are pointers to functions? 
  18.        int  ksort ( int x, int y, int (*comp)() );
  19.    MPW can't handle the pointer part.  Yet this is right out of K&R, pg 119.
  20.    THINK C 5.0 has no problem with this.
  21.  
  22. 2) How do you link the math functions!  I have included the libraries 
  23.    "{CLibraries}"Math.o, and then even tried compiling with the 68881 processor.
  24.    For example, link here won't be able to find sqrt:
  25.       #include <stdio.h>
  26.       #include <math.h>
  27.       void main ( )   
  28.        { float x = 9.0;
  29.          printf ("The sqrt is %f\n", sqrt(x));
  30.        }
  31.   Is it something to do with the sqrt being extended and it's trying to find a 
  32.   float sqrt?  If you get this to work, can you send me your file and MakeFile? 
  33.  
  34. 3) I am the only programmer where I work and the only programmer I know who 
  35.    uses MPW.  Is this the only place to get help?  Calling Apple for help is 
  36.    equivalent to dropping a brick on my foot (they tell me to call the dealer 
  37.    who's never heard of MPW - that's why they are salesman dammit!).  Is there 
  38.    anyplace where you can pay for tech services (it'd be worth it!)?
  39.  
  40. 4) Since I have you here, is there any way to make it so that the
  41.    return key works like the enter key?  And is there a full version
  42.    of 'vi' available for the Mac (one where you can resize windows)?
  43.    Where do you get those helpful items like Tech notes and such?
  44.  
  45. Much much appreciated!  If I can ever repay a favor, please let me know.
  46.  
  47. Whitney
  48.