Reply to topic

kDevelop does not accept any class declarations

stf
Registered Member
Posts
6
Karma
0
Attempting to use kDevelop 5.3.2 with Audacity source code.
Audacity is written in C++ with automake.

The code builds successfully, but kDevelop underlines class name in every function definition.

Example:
In src/About.h
Code: Select all
class AboutDialog final : public wxDialogWrapper {
   DECLARE_DYNAMIC_CLASS(AboutDialog)

 public:
...

In src/About.cpp
Code: Select all
void AboutDialog::CreateCreditsList()
{

"AboutDialog" is underlined in the above with a red wavy line.

kDevelop offers a "hint" which is clearly wrong:
Code: Select all
Problem in Semantic analysis
Use of undeclared identifier 'AboutDialog'; did you mean
'std::AboutDialog'?
Hint: 'std::AboutDialog' declared here
See: AboutDialog.h :50


Clearly kDevelop can see the class declaration, and equally clearly "std::AboutDialog" is not declared anywhere.

I have tried adding "include paths" in "Configure > Language Support". I have tried every combination that I can think of but can't find the necessary incantation to make it work.
User avatar scummos
Global Moderator
Posts
1153
Karma
7
OS
Try changing the "compiler for path" setting in the project configuration dialog.


I'm working on the KDevelop IDE.
stf
Registered Member
Posts
6
Karma
0
I have three options for "compiler for path": GCC, Clang, None.
I have tried all three, but no difference.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], boblundgren, claydoh, exces-s, fayl, Google [Bot], kde-camillem, Lupccs, rblackwell, Yahoo [Bot]