prabhakaran
prabhakaran

Reputation: 5274

qt - how to add additional include directories

Hi I am trying to create a qt program. Here I need some library file which are in

C:\Documents and Settings\prabhakaran\Desktop\ChessServerNew\ChessServerNew

I tried to edit the .pro file like

INCLUDEPATH += C:\Documents and Settings\prabhakaran\Desktop\ChessServerNew\ChessServerNew

But, still the qt compiler is saying that it can't find those files. Can anybody help me.

Upvotes: 3

Views: 4357

Answers (2)

Frank Osterfeld
Frank Osterfeld

Reputation: 25165

Try with a path without spaces in it, or quote it like suggested below. I think the spaces in "Documents and Settings" are the problem. Generally, I try to avoid any spaces in my paths, as qmake has problems with it.

Upvotes: 0

liaK
liaK

Reputation: 11648

Well, might be because of the classical double quotes miss..

INCLUDEPATH += "C:\Documents and Settings\prabhakaran\Desktop\ChessServerNew\ChessServerNew"

Try this..

Upvotes: 8

Related Questions