This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

$000000 in fortran?


Hello,

  I'm trying to compile a fortran source file that compiles and
  runs on an sgi.  The statement in question is a call to a depth
  buffer that requires an int#4 for it's near and far clipping
  parameters:  LSETDE(near, far)

  on the sgi, this line is:

  CALL LSETDE($000000,$7fffff);

  this runs fine as long as -ansi is not among the paraemters.

  On linux, compiling with f77 gives me:

  CALL LSETDE($000000,$7fffff)
       1      2
  Invalid token at (2) in expression or subexpression at (1)

  This problem seems to arise b/c of the $ and the hex instead of
  decimal.  Rather than converting and reinserting all 10000 instaces
  of this in my code, I was wondering if there was a flag I could pass
  to f77 to allow this to slide, just as is the default on sgi.

  any ideas?

  thanks in advance,

  Jamie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]