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