Menu

#488 error message parsing

closed
nobody
None
5
2012-09-26
2005-01-18
aditsu
No

Here is a very simple program, with a very simple error
in it:

include <stdio.h></stdio.h>

int main()
{
printf("hello world);
}

and here is the compile log:

Compiler: Default compiler
Building Makefile: "C:\work\cpp\temp\4\Makefile.win"
Executing make clean
rm -f main.o Project1.exe

g++.exe -D__DEBUG__ -c main.cpp -o main.o
-I"C:/work/cpp/components" -pedantic -Wall -W
-Wno-long-long -fmessage-length=0 -g3

main.cpp:4:16: missing terminating " character

main.cpp: In function int main()': main.cpp:5: error: syntax error before}' token

mingw32-make.exe: *** [main.o] Error 1

Execution terminated

but in the compiler tab, the first error is:

16 C:\work\cpp\temp\4\main.cpp:4 missing terminating "
character

so it thinks it is on line 16 of the file
"C:\work\cpp\temp\4\main.cpp:4"

Obviously, it should recognize that 4 is the line and
16 is the column, and either go to the exact location
or at least ignore the 16

Adrian

Discussion

  • Marek Januszewski

    Logged In: YES
    user_id=609236

    I remember having the same problem,
    but I can't get the compiler to produce column number now.

     
  • aditsu

    aditsu - 2005-02-18

    Logged In: YES
    user_id=682737

    well, I gave you the exact source code; the compiler (gcc
    3.3.1) always produces that log for me

    Adrian

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    could you please attach the project file and devcpp.ini?
    I understand you're using 3.4.2

     
  • aditsu

    aditsu - 2005-02-18

    project file, source file and devcpp.ini

     
  • aditsu

    aditsu - 2005-02-18

    Logged In: YES
    user_id=682737

    I said: "the compiler (gcc 3.3.1)"
    you said: "I understand you're using 3.4.2"
    I really don't understand :p
    what is the reasoning behind your finding?

    anyway, I have attached the requested files

    Adrian

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.