[Radiance-general] gendaylit, dls, glare factors

Peter Apian-Bennewitz [email protected]
Mon, 18 Mar 2002 10:51:26 +0100


--------------046BF2A0A57E7063D094FECB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

pillo wrote:

> i m osx beginner.
> also rad beginner.
> everything  beginner.
> you ll realize soon, reading my three questions ..;-)))))))))))
>
> FIRST QUESTION:
> while trying to compile gendaylit (on osx UNIX) i get this error:
>
> % make
> cc -Ae -g        -c sun.c
> cpp-precomp: Invalid option '-Ae'
> make: *** [sun.o] Error 1
>
> so i removed the -Ae tag (HP UNIX?) but with -ansi tag ...

yeap -Ae is for HPUX.  One has to handtweak the compile options.

>
> ... and another error message appeared
>
> %make
> cc -ansi -c sun.c
> cc -ansi -c fropen.c
> paths.h:62: only 1 arg to macro 'fropen' (2 expected)
> fropen.c:20: only 1 arg to macro 'fropen' (2 expected)
> fropen.c:20: illegal external declaration, missing `;' after `fropen'
> fropen.c:26: illegal external declaration, found `if'
> fropen.c:43: illegal method selector, found `1'
> fropen.c:44: illegal method definition, missing `{' after `/'
> fropen.c:46: illegal external declaration, found `if'
> cpp-precomp: warning: errors during smart preprocessing, retrying in
> basic mode
> make: *** [fropen.o] Error 1
>
> so i lost my faith...
> ...thinking i had to edit the c source.
> is anybody so kind and nice to help me compiling such program?

Apparently OS-X on Mac has some macro fropen  defined. The function
prototype in paths.h specifies only one argument for the function defined
in fropen.c .
Try to add a #undef fropen in line 9 of paths.h .

-Peter

--
 pab-opto, Freiburg, Germany, www.pab-opto.de



--------------046BF2A0A57E7063D094FECB
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
pillo wrote:
<blockquote TYPE=CITE>i m osx beginner.
<br>also rad beginner.
<br>everything&nbsp; beginner.
<br>you ll realize soon, reading my three questions ..;-)))))))))))
<p>FIRST QUESTION:
<br>while trying to compile gendaylit (on osx UNIX) i get this error:
<p>% make
<br>cc -Ae -g&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -c sun.c
<br>cpp-precomp: Invalid option '-Ae'
<br>make: *** [sun.o] Error 1
<p>so i removed the -Ae tag (HP UNIX?) but with -ansi tag ...</blockquote>
yeap <i>-Ae </i>is for HPUX.&nbsp; One has to handtweak the compile options.
<blockquote TYPE=CITE>&nbsp;
<br>... and another error message appeared
<p>%make
<br>cc -ansi -c sun.c
<br>cc -ansi -c fropen.c
<br>paths.h:62: only 1 arg to macro 'fropen' (2 expected)
<br>fropen.c:20: only 1 arg to macro 'fropen' (2 expected)
<br>fropen.c:20: illegal external declaration, missing `;' after `fropen'
<br>fropen.c:26: illegal external declaration, found `if'
<br>fropen.c:43: illegal method selector, found `1'
<br>fropen.c:44: illegal method definition, missing `{' after `/'
<br>fropen.c:46: illegal external declaration, found `if'
<br>cpp-precomp: warning: errors during smart preprocessing, retrying in
<br>basic mode
<br>make: *** [fropen.o] Error 1
<p>so i lost my faith...
<br>...thinking i had to edit the c source.
<br>is anybody so kind and nice to help me compiling such program?</blockquote>
Apparently OS-X on Mac has some macro <i>fropen</i>&nbsp; defined. The
function prototype in paths.h specifies only one argument for the function
defined in fropen.c .
<br>Try to add a <i>#undef fropen</i> in line 9 of paths.h .
<p>-Peter
<pre>--&nbsp;
&nbsp;pab-opto, Freiburg, Germany, www.pab-opto.de</pre>
&nbsp;</html>

--------------046BF2A0A57E7063D094FECB--