Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

c headers

Status
Not open for further replies.

rih5342

Marine/Ocean
May 8, 2007
40
Non C programer here.

The headers at the top of a C function are my problem.

From the "compiler/operating-system/effective" point of view, what's the difference between

#include <rpc/xdr.h>
#include "rpc/xdr.h"

Both yield errors.
The compiler can't find the directory in <> version.
The compiler takes the "", but then complains about deeper headers.

I'm reluctant to start changing all the <> to "".

Thank you.
 
Replies continue below

Recommended for you

The angle bracket include < > only searches for the file in the include path list. The double quotes " " include searches the current working directory (where file you are compiling is) first. Use angle brackets when using standard / system headers, use double quotes when writing your own local header files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor