• C

where to find the header file

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

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
-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.

> -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.
suppose   ssl.h  file is in the dircetory    /usr/ssl/include/openssl  then all of the follwoint make same sense

gcc   -I/usr/ssl/include .....

gcc   -I/usr/ssl/include/openssl  .....
(BE CAREFUL With this   depending on which -I include directiove comes first  the file from that directory will be included
e.g   if you have   types.h in  /usr/include/sys/types.h   and also in /usr/include/types.h  dont use this type of shortcut option )

#include "/usr/ssl/include/openssl /ssl.h"
gcc   .....

-g option is for debug

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.