INCLUDE files can't be found.

I am trying to compile various sybase products. I realised I hadn't installed the include files eg.(stdio.h,stdlib.h)
So I whacked on the Kernel headers RPM
well no i can don a global disk search and find the include files. but programs I am compiling cannot find the include files.
they aren't all in the one directory either.
Basically my question is:

How is the path of the include files set?
LVL 1
cam_ratAsked:
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.

jonaleeCommented:
I just assume that your include files are in the follow directory:
/mount1/include
Then, you need the following command to compile:
gcc -I/mount1/include my.c -o my.o


0
cam_ratAuthor Commented:
the include files are located in more than one location.
I am using Makefiles.
I shouldn't have to enter the path into the makefile.
the include path should be located elsewhere.
0
ramaswamysCommented:
You need to include the include paths in your Makefile; there is a Makefile variable INCLUDES. If the files are in more than one location, you might want to define it like
INCLUDES = -I/usr/include -I/usr/local/include -I/home/cam_rat/include etc in your Makefile.

Good Luck
Ramaswamy
0

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
cam_ratAuthor Commented:
sorry.. I looked at your first comment more closely and you were perfectly right.
0
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
Web Languages and Standards

From novice to tech pro — start learning today.