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

kdevelop seemingly adds includes to my source at random

Tags: None
(comma "," separated)
garyd
Registered Member
Posts
2
Karma
0
kdevelop 4.8.5 on ubuntu server 12.04 and xfce

every so often when i go to compile i get an include file error, sure enough kdev has added an include to a source file. did i accidentally turn something on?

thanks

update:
doing some basic editing, went to to other window to run make. it added #include <mysql/my_global.h>
project does not even use mysql
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Those includes are sometimes added by code completion, if you type a class name which is defined in some header it'll suggest to include that header (but only add the #include directive if you confirm by pressing enter). If you are not careful this can sometimes happen without you wanting it, indeed ;)

Greetings,
Sven


I'm working on the KDevelop IDE.
garyd
Registered Member
Posts
2
Karma
0
Thanks Sven,

If there was a way to turn it off, it would be nice. I'll try to pay attention.

I would be interested in trying your python module when ready. As it turns out. I am working on a c app that embeds the python interpreter, so i am using kdev for both
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Python language support has 2 stable releases and is quite usable. You can go ahead with it :)

You can't turn the include feature off, except if you turn off all the autocompletion stuff... which you probably don't want to do.

Cheers,
Sven


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]