Link to home
Start Free TrialLog in
Avatar of cam_rat
cam_rat

asked on

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?
Avatar of jonalee
jonalee

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


Avatar of cam_rat

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of ramaswamys
ramaswamys

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
Avatar of cam_rat

ASKER

sorry.. I looked at your first comment more closely and you were perfectly right.