[comp.sys.mac.programmer] New MPW C Programmer, and I need HELP!

lasky@iris.ucdavis.EDU (Ty Lasky) (11/06/90)

I am just learning MPW C, and I have quickly run into a couple of
problems. If someone out there would e-mail me a reply, I would greatly
appreciate it. I don't think that this is of any interest to the general
group, so please respond by e-mail.  Thanks!

1.  Simple question:  I wrote the canonical C example, "hello, world", using 
#include <stdio.h>, and printf. When I run this (after creating a make
file using 'Create Build Commands', I get an alert box which says that
writing to the console is not supported in applications. The message
that I tried to print is there, but I would like it to appear in a
window. I realize that it is better on the Mac to use toolbox routines,
but I would like to be able to use stdio so that I can run some of the
code that I have written for Unix and/or DOS.  Please let me know what I
am doing wrong here.

2.  SADE:  I want to use SADE to do source level debugging of my code. I
have included '-sym on' in my link command, and '-sym' in my compile
command. However, when I run the program and hit the SADE key, SADE does
not come up with a window containing the source code in which I can set
breakpoints, etc..  What am I doing wrong here?  Should I be using '-sym
full' in the link command?

Thanks for any help at all!

A newly frustrated MPW programmer,

Ty A. Lasky
lasky@iris.ucdavis.edu