hey guys,
I'm using eclipse C++ and the minGW compiler.

I am trying to write a header file, and in my src folder, I have HelloWorld.cpp, and HelloHeader.h

I'm getting "file or directory not found when I add: #include<HelloHeader.h> could anyone help me out?

Cheers PO

Common Misconception....

#include<HelloHeader.h>

instead of the typical header file declaration as seen above you must instead use this below when using your own header files:)

#include"HelloHeader.h"

Note the " " instead of the typical < >

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.