home *** CD-ROM | disk | FTP | other *** search
- 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
- From: whitney@cs.ucsd.edu (Whitney Cunha)
- Newsgroups: comp.sys.mac.programmer
- Subject: Desperate MPW Questions!
- Message-ID: <43205@sdcc12.ucsd.edu>
- Date: 8 Jan 93 23:12:05 GMT
- Sender: news@sdcc12.ucsd.edu
- Followup-To: whitney@cs.ucsd.edu
- Organization: General Atomics, San Diego
- Lines: 35
- Nntp-Posting-Host: tartarus.ucsd.edu
-
- I'm new to the Mac and I'm using MPW 3.2.3. Please! I need some answers to
- these simple questions (just not simple to me) fast. My boss is visiting my
- desk every 5 minutes now....
-
- 1) Why won't MPW C handle function parameters that are pointers to functions?
- int ksort ( int x, int y, int (*comp)() );
- MPW can't handle the pointer part. Yet this is right out of K&R, pg 119.
- THINK C 5.0 has no problem with this.
-
- 2) How do you link the math functions! I have included the libraries
- "{CLibraries}"Math.o, and then even tried compiling with the 68881 processor.
- For example, link here won't be able to find sqrt:
- #include <stdio.h>
- #include <math.h>
- void main ( )
- { float x = 9.0;
- printf ("The sqrt is %f\n", sqrt(x));
- }
- Is it something to do with the sqrt being extended and it's trying to find a
- float sqrt? If you get this to work, can you send me your file and MakeFile?
-
- 3) I am the only programmer where I work and the only programmer I know who
- uses MPW. Is this the only place to get help? Calling Apple for help is
- equivalent to dropping a brick on my foot (they tell me to call the dealer
- who's never heard of MPW - that's why they are salesman dammit!). Is there
- anyplace where you can pay for tech services (it'd be worth it!)?
-
- 4) Since I have you here, is there any way to make it so that the
- return key works like the enter key? And is there a full version
- of 'vi' available for the Mac (one where you can resize windows)?
- Where do you get those helpful items like Tech notes and such?
-
- Much much appreciated! If I can ever repay a favor, please let me know.
-
- Whitney
-