compiler error in non-existing line?

This is a discussion on compiler error in non-existing line? within the C Programming forums, part of the General Programming Boards category; Hi, guys, perhaps it is a wrong board, sorry about that in advance. I have been working on my C ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    99

    compiler error in non-existing line?

    Hi, guys, perhaps it is a wrong board, sorry about that in advance.
    I have been working on my C project, and I used Dev-C++, and then gcc on UNIX, and i keep getting the same error: parse error in line which does not exist in the .c file... For example, the file has exactly 62 lines, and I get parse error in 63! What is going on? Can somebody tell me?

  2. #2
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by kocika73
    Hi, guys, perhaps it is a wrong board, sorry about that in advance.
    I have been working on my C project, and I used Dev-C++, and then gcc on UNIX, and i keep getting the same error: parse error in line which does not exist in the .c file... For example, the file has exactly 62 lines, and I get parse error in 63! What is going on? Can somebody tell me?
    Missing closing bracket? (Could be caused by mismatched parentheses, mismatched quotes, mismatched brackets.)

    Regards,

    Dave

  3. #3
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    Compile a simple "hello world" program to see whether its your code or the compiler..
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    99
    Thanks, I already know what happened. It is just so misleading to read about an error in a line outside of the file....
    Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to do encryption in C
    By sankarv in forum C Programming
    Replies: 33
    Last Post: 12-28-2010, 11:01 AM
  2. Very strange error...
    By Blackroot in forum C++ Programming
    Replies: 2
    Last Post: 12-14-2006, 01:37 AM
  3. print line by line from a file
    By SoFarAway in forum C Programming
    Replies: 3
    Last Post: 02-18-2005, 01:36 PM
  4. Read only one line using seekg
    By RedZippo in forum C++ Programming
    Replies: 3
    Last Post: 03-31-2004, 11:10 PM
  5. if is faster than switch?
    By skorman00 in forum C++ Programming
    Replies: 32
    Last Post: 03-06-2004, 01:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21