ethan schartman wrote:
> 
> hi folks,
> i am porting some fortran from other unix flavors to
> darwin, and am having some trouble with cpp and the ##
> macro. specifically, the ## is not being deleted:
> 
> ethan% grep ## Implic.inc
> #define CONST(mant,exp) mant##E##exp
> 
> ethan% grep CONST brambJES.fpp
>       aip=CONST(100.,0)*(aa(2)-aa(1))
> 
> ethan% cpp -E -P -C brambJES.fpp
> > ./brambJES.for
> 
> ethan% grep ## ./brambJES.for
>       aip=100.##E##0*(aa(2)-aa(1))
> 
> ethan% cpp -v
> GNU CPP version 2.95.2 19991024 (release)

/usr/bin/cpp is a shell script (go ahead, look at it) that is
wired to set traditional preprocessing, for use in obscure parts
of the system.  So you probably don't want it.  Your best bet
to get ISO preprocessing is to do "cc -E -no-cpp-precomp" instead.

Stan


-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to