Link to home
Start Free TrialLog in
Avatar of rongz
rongz

asked on

where to find the header file

Hi,
Some header file are included as ,for example #include<openssl/ssl.h>. What is the path to locate this header file? And what's difference than using <ssl.h> or "pathname/ssl.h"?

what does the following flag variable defined in a Makefile mean?
CFLAGS= -g -I../../include

Thanks.
Avatar of rstaveley
rstaveley
Flag of United Kingdom of Great Britain and Northern Ireland image

Try /usr/include/openssl/ssl.h if your system headers are in /usr/include.

The flag -g says to pass the next option onto a subprocess. Thus gcc gets the following flag.

The flag -I../../include says to treat ../../include as a location for system headers, which takes priority. Directories named by -I are searched before the standard system include directories.
Avatar of GaryFx
GaryFx

-g is the debug option.  I don't know where you got the idea that it's to pass the flag on to a subprocess.

Gary
> -g is the debug option.  I don't know where you got the idea that it's to pass the flag on to a subprocess.

Sorry, I managed to nuke some text and my train of thought, when a delivery came in. We've got a postal strike in the UK... and deliveries are something of an event. GaryFx is right: -g does indeed get you debug.
ASKER CERTIFIED SOLUTION
Avatar of Ajar
Ajar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial