POV-Ray : Newsgroups : povray.unofficial.patches : NT command line : Re: NT command line Server Time
2 Sep 2024 12:15:36 EDT (-0400)
  Re: NT command line  
From: Nathan Kopp
Date: 28 Jan 2000 09:34:54
Message: <3891a90e@news.povray.org>
Michael Andrews <M.C### [at] readingacuk> wrote...
> Actually, with some more testing, I find that it doesn't run happily. It
> seems that #macro and possibly #if directives are causing problems. Are
> these the constructs which use fseek() to move around the file? If so I
> guess the Cygnus compiler is acting in a non-standard way with this.
> Does anyone know of a fix for this behaviour? Or if the MingW32 does the
> same?

#macro and #if both use fseek() and ftell(), and some compilers (including
MSVC++) can have problems with these.  MSVC++, for example, sometimes
assumes that your file is DOS format (using CR+LF for new line).  Cygnus may
assume the opposite.  For MSVC++, the solution is to convert form UNIX
format to DOS format.  (I use my editor, PFE, for this task.)  For Cygnus,
you may need to convert the opposite direction, but be aware that POV's
editor doesn't support UNIX format.

-Nathan


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.