Rif: Re: [Radiance-general] gendaylit, dls, glare factors

[email protected] [email protected]
Mon, 18 Mar 2002 14:40:47 CET


This is a multi-part message in MIME format.

------=____1016458847353_Pvn_DyRpd7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

thanks a lot for giving me the LIGHT!!!!
now IT WORKS!!!
WWWWWW


[email protected]

PS other questions still remain unsolved... so if anybody knows about....
> 
> Da: Peter Apian-Bennewitz <[email protected]>
> Data: 18/03/2002 10:51
> A: [email protected]
> Oggetto: Re: [Radiance-general] gendaylit, dls, glare factors
> 
> 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
> 
> 
> 
> 

------=____1016458847353_Pvn_DyRpd7
Content-Type: text/html;
	name="reply"
Content-Disposition: inline;
	filename="reply"

<!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>


------=____1016458847353_Pvn_DyRpd7--