Thread: compiler issue

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    compiler issue

    hello

    i am new to c/c++

    i am trying to compile some basic c code in dev-C++ but keep getting the following error

    C:\DEV-C_~1\INCLUDE\stdio.h:1: unterminated comment

    i know the code is correct so could someone please advise me what correction i need to make to the compiler.

    thanks

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    4
    the code is definatley correct.

    the compiler is dev c++ 4

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    4
    i have quickly become aware how frustrating programming can be.

    i have rectified the problem... the code IS compiling now.

    thanks for taking the time to try and help. no doubt i will be back on the forums many times in the future.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>i have rectified the problem... the code IS compiling now
    So what was the problem.... let others learn from your experiences too.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > i have quickly become aware how frustrating programming can be.
    Asking somebody to help you without showing them your errors produces similar results.
    The world is waiting. I must leave you now.

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    4
    i manually deleted the dev- c++ compiler and reinstalled it (i did this twice) and it worked on the third installation... as simply as that... i dont know why it decided to work this time

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    That seems a bit strange.... oh well, at least you got it going.

    I was going to suggest this, which I found in google's NG archive:
    Using " and ' in a comment started with // results in an
    "Unterminated string or character constant"
    if you hand it in a .c file to gcc without telling anything about
    C++.
    It's a bit old, and probably nothing like what you're running.... but it would have been my only shot...
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dev C++ Compiler, Indentation?
    By Zeusbwr in forum C++ Programming
    Replies: 3
    Last Post: 10-21-2004, 06:13 AM
  2. lcc win32 compiler download problems
    By GanglyLamb in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-01-2004, 07:39 PM
  3. MSVC++ vs GCC compiler issue
    By WDT in forum C++ Programming
    Replies: 9
    Last Post: 01-04-2004, 01:07 PM
  4. Special Compiler for win app's
    By Unregistered in forum Windows Programming
    Replies: 19
    Last Post: 04-26-2002, 03:52 PM
  5. Compiler Issue
    By spd_dmn in forum C++ Programming
    Replies: 5
    Last Post: 01-16-2002, 01:29 PM