• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Illegal byte sequence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Re: Illegal byte sequence
      • From: "Mark Wagner" <email@hidden>
References: 
 >Illegal byte sequence (From: "Mark Wagner" <email@hidden>)

  • Prev by Date: Re: Builds cause iTunes to stutter
  • Next by Date: Re: Unexpected NSEvents.h error after switching to Release build
  • Previous by thread: Illegal byte sequence
  • Next by thread: Re: Re: Illegal byte sequence
  • Index(es):
    • Date
    • Thread