[13948] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 7.7T: suncc missing a define ...

daemon@ATHENA.MIT.EDU (Jake Wetzel)
Wed Oct 25 07:06:22 1995

To: bugs@MIT.EDU
Date: Wed, 25 Oct 1995 07:06:05 EDT
From: Jake Wetzel <jawetzel@MIT.EDU>

System name:		spiderman
Type and version:	SPARC/5 7.7T
Display type:		cgthree

This is a demonstration file foo.c:

#include <stdio.h>
#include <values.h>

void main(void)
{
  printf("Max double = %lf\n", MAXDOUBLE);
}

And here are the results:

% suncc -Xc -o foo foo.c
"foo.c", line 36: undefined symbol: MAXDOUBLE
cc: acomp failed for foo.c

values.h assigns the proper value of MAXDOUBLE based upon the machine that
the code is being compiled upon (provided that __STDC__ is defined).
Shouldn't the compiler what architecture its running on?

							Jake Wetzel

home help back first fref pref prev next nref lref last post