This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kDevelop does not accept any class declarations

Tags: None
(comma "," separated)
stf
Registered Member
Posts
8
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
1175
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
8
Karma
0
I have three options for "compiler for path": GCC, Clang, None.
I have tried all three, but no difference.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell