Thread: Trouble Getting Started C compiler is offended by "

  1. #1
    Registered User
    Join Date
    Oct 2018
    Posts
    2

    Trouble Getting Started C compiler is offended by "

    Hello, I am newly getting started with C on an older Mac Book Pro.

    OS X El Capitan 10.11.6
    Apple LLVM version 7.3.0 (clang-703.0.31)
    Command Line Tools
    OS X 10.11

    I am having trouble compiling a simple Hello world program.

    It says the double quote,", is not an ascii character.

    I used Text Edit, Plain Text, UNICODE (UTF-8).

    Any help would be appreciated.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,485
    Source code is written in vanilla ASCII, no UNICODE, no UTF-8, nothing.

    If you let the editor use UNICODE, you're likely to end up with rather than "".
    ASCII and Unicode quotation marks
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2018
    Posts
    2
    Quote Originally Posted by Salem View Post
    Source code is written in vanilla ASCII, no UNICODE, no UTF-8, nothing.

    If you let the editor use UNICODE, you're likely to end up with rather than "".
    ASCII and Unicode quotation marks
    Thank you. I was assuming Plain Text would be plain enough. But, I was wrong. Once again, thank you.

    Can you recommend a text editor, I once used vi, long long ago, if that is helpful in making a recommendation.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,485
    All I can suggest is google "text editor mac".
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Visual Studio Code and Atom are both great text editors, designed with programming in mind, and they're both available for mac.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 08-29-2016, 01:53 PM
  2. Trouble getting started in reading a .csv file
    By rougeknight21 in forum C Programming
    Replies: 2
    Last Post: 03-25-2015, 06:16 AM
  3. Replies: 5
    Last Post: 08-01-2013, 12:10 PM
  4. having trouble getting started.
    By MasterFreak in forum C++ Programming
    Replies: 5
    Last Post: 12-13-2008, 12:06 AM
  5. Having trouble getting started with Microsoft Visual C++
    By jcarouth in forum C++ Programming
    Replies: 11
    Last Post: 09-19-2005, 07:25 PM

Tags for this Thread