Re: Bug with compiler or am I just doing something illegal
- From: raphfrk <raphfrk@xxxxxxxxxxxx>
- Date: Thu, 3 Jul 2008 05:09:48 -0700 (PDT)
On Jul 3, 5:14 am, rahul <rahulsin...@xxxxxxxxx> wrote:
Just curious, do you mean that this code worked correctly in the
former case? Since the errors seems to be in your code, I don't
understand how it worked well as a cygwin program. One possible
explanation is that as cygwin emulates unix environment, it does not
distinguish between byte and text streams.
Yeah, I think that is probably it. My memory is that fprintf as
native cygwin will output unix type files.
In fact, it can cause issues when compiling source files. It executes
a dos2unix command before it passes them to the compiler. This can
mean that the line number in the compiler doesn't match the DOS line
number as sometimes notepad adds hidden characters that are
interpreted as newlines. (I think created by pressing shift-delete or
some other wierd combination).
I end up running dos2unix and unix2dos on the files every so often.
This ensures the DOS version and the unix version are equivalent.
.
- References:
- Prev by Date: Re: read and write columns
- Next by Date: Bug in list of matrics represended as arays.....
- Previous by thread: Re: Bug with compiler or am I just doing something illegal
- Next by thread: Re: Bug with compiler or am I just doing something illegal
- Index(es):
Relevant Pages
|