Originally Posted by Poonamol View Post

I am using C++ under Unix environment.
I had created 2 files xyz.h and xyz.cpp, I want to compile them on unix server.
How can I do it? After compilation i need to execute it.

I created a simple hello world program and it work fine.
for compile i used cc x.cpp => then a.out file is generated
then i used ./a.out => it execute successfully.

But while I am compiling my own created files,
I am receiving following error
"The #include file xyz.h is not found"

But i kept my 2 files under same dir only. How can I solve this.
Thanks in advance....
i want to know that u are create ur own header file or simply u write that #include xyz.h
or if u create ur header file then it must be stored in usr\include isn't it?