Re: Illegal byte sequence
Re: Illegal byte sequence
- Subject: Re: Illegal byte sequence
- From: Chris Espinosa <email@hidden>
- Date: Thu, 7 Dec 2006 15:04:55 -0800
On Dec 4, 2006, at 2:14 PM, Mark Wagner wrote: When compiling one of the source code files in my project using GCC 4, I get the error message "PGHTMDEF.C:350:1: error: converting to execution character set: Illegal byte sequence". Line 350 is the last line in the file, and contains only a Windows-style CR/LF sequence, so I doubt this is where the actual error is. What causes this error, why didn't it happen in GCC 3.3, and how can I figure out where the error is?
What are the line endings elsewhere in the file? All CRLF, all LF? Does changing the line endings in Xcode fix the problem?
One thing to check, and this may sound off the wall, is whether you have Xcode set to compile this as a C file. Due to ancient Unix history, gcc defaults to interpreting files ending in .C (not .c, which is different) as C++. So try setting your dialect to C to force the .C file to be C instead of C++.
Chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden