[Interest] QtCreator oddity

Roland Hughes roland at logikalsolutions.com
Fri Apr 20 21:28:01 CEST 2018

On 04/20/2018 08:28 AM, Christian Kandeler wrote:
>> Yes, there is a force here. Having to inform the environment about a
>> directory underneath /usr/include is a force. By design all directories
>> in that tree are searched.
> What makes you think that?
> Christian
30+ years in IT and the test posted earlier in this thread. I'm just 
typing this in from memory as I'm not in my office.

cd /usr/include
mkdir aa
mkdir a.a
cd aa
copy  /usr/include/libusb...whatever/libusb.h .
cd ../a.a
copy  /usr/include/libusb...whatever/libusb.h .

No go into your QtCreator and in a .cpp file start typing

#include <a

What shows up? aa but not a.a
Go ahead and hit enter, what shows up? libusb.h (or whatever you named 
the .h file.

/usr/include is walked and in this case the walker has a shattered 
knee-cap. It cannot walk any directory with a "." in the name.

Need further proof?

Install PostgreSQL client and dev on your system. When you open a .cpp 
in QtCreator and type
#include <post
what comes up?

Roland Hughes, President
Logikal Solutions


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180420/841b1e86/attachment.html>

More information about the Interest mailing list