psandekian
Programmer
Hi from a Newbie.
I'm using C on a UNIX-like system called REGULUS(it's antique but I have to use it do the complex application that I'm trying to update). I'm trying to use #ifdef to write some variable constants to my console window so I can see where my error is occurring but every time I run it, it locks up my system tight. Here's what I'm doing:
I'm compiling using:
cc $CFL7000 -Y -c psmain.c
make exec
$CFL7000 flag is a really long list of compiling options.
I hope someone can see my error and point me in the right direction.
Just curious, is there any way to step through the code?
Thanks!
Patty
I'm using C on a UNIX-like system called REGULUS(it's antique but I have to use it do the complex application that I'm trying to update). I'm trying to use #ifdef to write some variable constants to my console window so I can see where my error is occurring but every time I run it, it locks up my system tight. Here's what I'm doing:
Code:
PUBLIC long *todptr; /* pointer to long system time */
...
#define DEBUG
...
main ()
...
#ifdef DEBUG
FILE *fp = fopen ("/dev/console","w");
#endif
...
todptr = asystime();
#ifdef DEBUG
fprintf (fp, "todptr = %d", todptr);
fflush (fp);
#endif
...
I'm compiling using:
cc $CFL7000 -Y -c psmain.c
make exec
$CFL7000 flag is a really long list of compiling options.
I hope someone can see my error and point me in the right direction.
Just curious, is there any way to step through the code?
Thanks!
Patty