<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Attempting to compile sac-101.5c using gcc version i686-apple-darwin11-llvm-gcc-4.2 under Macos 10.7,3,</div>
<div>I get a series of compiler errors stemming from the following code in hdr.h</div>
<div><br>
</div>
<div>I want to compile this so I can run SAC under &nbsp;the debugger to track down problems.</div>
<div><br>
</div>
<div>gcc -DHAVE_CONFIG_H -I. -I../inc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -I../inc -I../libedit/include &nbsp;-DDOINITS -c ./dff/hdrfld.c -o dff/hdrfld_io.o</div>
<div>In file included from ./dff/hdrfld.c:12:</div>
<div>../inc/hdr.h:287: error: initializer element is not constant</div>
<div>../inc/hdr.h:288: error: initializer element is not constant</div>
<div>../inc/hdr.h:289: error: initializer element is not constant</div>
<div><br>
</div>
<div>The offending lines follow the ifdef below.</div>
<div><br>
</div>
<div><br>
</div>
<div>#ifdef DOINITS</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; float *const a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= (float*)((char*)cmhdr.fhdr &#43; &nbsp;32);</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; float *const arrivl &nbsp; &nbsp; = (float*)((char*)cmhdr.fhdr &#43; &nbsp;32);</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; float *const az &nbsp; &nbsp; &nbsp; &nbsp; = (float*)((char*)cmhdr.fhdr &#43; 204);</div>
<div>And many more follow.</div>
<div><br>
</div>
<div>Is there an easy way to fix this?</div>
<div><br>
</div>
<div>I am neither a skilled C coder nor Mac user.</div>
<div><br>
</div>
<div>LeRoy Dorman</div>
</div>
</body>
</html>