kdevelop build error: undefined reference to `KDevelop::EditorContext::currentWord() const'

René J.V. Bertin rjvbertin at gmail.com
Sun Jun 26 15:26:19 UTC 2016


On Sunday June 26 2016 09:18:17 René J.V. Bertin wrote:

>I'll be giving 6.1.1 a try later today, I was planning to see anyway if there's a real benefit to that version.

Still get the linker errors with gcc 6.1.1 too.


>>> But that wouldn't explain why EditorContext::currentWord() and the
>>> EditorContext typeinfo are the only symbols concerned...
>>No idea why is that either...
>
>That could actually be simply because the file doesn't use anything else from EditorContext ...

That's it indeed. Add other methods from the same class and you get the same error.

I also checked kdevqmljsplugin.cpp which is one of the 2 other used files where EditorContext is used. Invoking EditorContext::currentLine() works perfectly from there, so the problem is *not* with the shared library providing the class.

R.


More information about the KDevelop-devel mailing list