I have this question and might look stupid indeed, but bear with me.
I have files in this hierrachy

ProjectFolder/Panel/panel.h
ProjectFolder/Panel/panel.cpp
AND
projectFolder/Search/search.h
projectFolder/Search/search.cpp

I want to include search.h in panel.h
I have tried many thing including

#include "./search/search.h"
#include "../search/search.h"

but I have failed. Any suggestion on how to do it right?

Solved it.
It was spelling error than anything else error. Just added project DIr to compiler search path and that is ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.