Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » no (path) in problems window list((path) field is empty for non-class errors found during make)
no (path) in problems window list [message #1836296] Mon, 28 December 2020 16:48 Go to next message
Kent Dorfman is currently offline Kent DorfmanFriend
Messages: 20
Registered: December 2020
Junior Member
background:

using eclipse/cdt 2020-09 (4.17.0)

C/C++ makefile project being managed under eclipse CDT. the makefile project is treed so that libraries are built first in separate directories and each library must pass a ClassTest.cpp unit test for the build to continue. I have provided numerous build targets to the toplevel makefile and each are registered in the eclipse project profile.

When executing the "classes" build target in eclipse the problems window correctly locates all errors and warnings that are associated with class declarations and implementations. However, syntax errors that are encountered in the unit test file ClassTest.cpp are not correctly registered in the errors description. The (path) field is empty, which disallows double clicking on the error to jump to the error location in ClassTest.cpp.

Why? and how to fix?

index.php/fa/39622/0/
  • Attachment: errors.png
    (Size: 90.62KB, Downloaded 281 times)
Re: no (path) in problems window list [message #1836309 is a reply to message #1836296] Mon, 28 December 2020 21:11 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Please try to use smaller images.
I couldn't read your post until I tried to reply.
The right part was truncated.

How are the errors reported in the build console?
Do they look like this?
Note the path in the error message.
g++ -c  -Wall -c -std=c++11 -g -O0 -I inc   src/ARRAY.cpp -o obj/ARRAY.o
src/ARRAY.cpp:31:1: error: 'an' does not name a type; did you mean 'yn'?
   31 | an error
      | ^~



Re: no (path) in problems window list [message #1836311 is a reply to message #1836309] Mon, 28 December 2020 21:49 Go to previous messageGo to next message
Kent Dorfman is currently offline Kent DorfmanFriend
Messages: 20
Registered: December 2020
Junior Member
the exact same way as they exist for class files. Only difference is that it is a program file ClassTest.cpp instead of class.hpp and class.cpp

-- in console output: introduced error for description of problem- -
Making Util:: classes...
Making Net:: classes...
ClassTest.cpp: In function 'bool Test_SpcPktMessage()':
ClassTest.cpp:188:67: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
MessageSpcPkt message("msg", MessageSpcPkt::RAW_TC, 0xf0, 0x00);
^
In file included from ClassTest.cpp:14:
/6TB/home/Q7-common/classes/Net/MessageSpcPkt.hpp:60:32: note: initializing argument 1 of 'Net::MessageSpcPkt::MessageSpcPkt(int, uint8_t, uint8_t, uint8_t)'
explicit MessageSpcPkt(int mType, uint8_t apid, uint8_t cpu, uint8_t priority = 0):
~~~~^~~~~

[Updated on: Mon, 28 December 2020 21:50]

Report message to a moderator

Re: no (path) in problems window list [message #1836312 is a reply to message #1836311] Mon, 28 December 2020 21:59 Go to previous message
Kent Dorfman is currently offline Kent DorfmanFriend
Messages: 20
Registered: December 2020
Junior Member
well I just noticed that the make is from within the actual source directly and it is NOT including full path on the error line. is that a constraint of the error checker, that it needs full paths to resolve?

Apparently not, because a similar error introduced into a class file for testing purporse works as expected, yet does NOT contain full path infomration in the console log.

[Updated on: Mon, 28 December 2020 22:02]

Report message to a moderator

Previous Topic:Problem accessing gcc
Next Topic:Polyspace plugin for ECLIPSE IDE
Goto Forum:
  


Current Time: Thu Apr 25 19:49:31 GMT 2024

Powered by FUDForum. Page generated in 0.03105 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top