Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Path to header files
@ 1999-10-20  4:00 Mark Olaveson
  1999-10-21  4:00 ` Yvonne & Oliver Maag
  1999-10-21  4:00 ` Adam Price
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Olaveson @ 1999-10-20  4:00 UTC (permalink / raw)


I am trying to compile C programs that use semaphores in Digital Unix.
They include header files from /usr/sys/include instead of the normal
/usr/include. The compiler gives an error that it cannot find the header
files. I can use -I/usr/sys/include if I compile from the command line,
but this doesn't work in a makefile. Can anyone tell me how to set the
path to find include files in another directory?

Mark Olaveson
Ricks College




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Path to header files
  1999-10-20  4:00 Path to header files Mark Olaveson
  1999-10-21  4:00 ` Yvonne & Oliver Maag
@ 1999-10-21  4:00 ` Adam Price
  1999-10-21  4:00   ` Robert Koehler
  1 sibling, 1 reply; 4+ messages in thread
From: Adam Price @ 1999-10-21  4:00 UTC (permalink / raw)



Mark Olaveson wrote in message <380E39B6.167A82EE@ricks.edu>...
>I am trying to compile C programs that use semaphores in Digital Unix.
>They include header files from /usr/sys/include instead of the normal
>/usr/include. The compiler gives an error that it cannot find the header
>files. I can use -I/usr/sys/include if I compile from the command line,
>but this doesn't work in a makefile. Can anyone tell me how to set the
>path to find include files in another directory?
>
>Mark Olaveson
>Ricks College
>
From memory which may be faulty I seem to remember that /usr/include/sys/ is
a symbolic link to /usr/sys/include... If I am wrong then sorry for wasting
your time, if I am right then just specify your headers as <sys/header.h>

Hope this helps
Adam






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Path to header files
  1999-10-20  4:00 Path to header files Mark Olaveson
@ 1999-10-21  4:00 ` Yvonne & Oliver Maag
  1999-10-21  4:00 ` Adam Price
  1 sibling, 0 replies; 4+ messages in thread
From: Yvonne & Oliver Maag @ 1999-10-21  4:00 UTC (permalink / raw)


Which header files? 
Why not changing the code?

Oliver

On Wed, 20 Oct 1999 15:52:54 -0600, Mark Olaveson
<olavesonm@ricks.edu> wrote:

>I am trying to compile C programs that use semaphores in Digital Unix.
>They include header files from /usr/sys/include instead of the normal
>/usr/include. The compiler gives an error that it cannot find the header
>files. I can use -I/usr/sys/include if I compile from the command line,
>but this doesn't work in a makefile. Can anyone tell me how to set the
>path to find include files in another directory?
>
>Mark Olaveson
>Ricks College




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Path to header files
  1999-10-21  4:00 ` Adam Price
@ 1999-10-21  4:00   ` Robert Koehler
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Koehler @ 1999-10-21  4:00 UTC (permalink / raw)


Adam Price (adam+usenet@pappnase.demon.co.uk) wrote:

: just specify your headers as <sys/header.h>

Be aware that this is a violation of the ANSI C standard and will cause 
your code not to be portable to some platforms.

Use of the -I compiler flag allows one to maintain portability.

------------------------------------------------------------------------------
Bob Koehler                     | Computer Sciences Corporation
Hubble Space Telescope Payload  | Federal Sector
 Flight Software Team           | Civil Group



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-10-21  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-20  4:00 Path to header files Mark Olaveson
1999-10-21  4:00 ` Yvonne & Oliver Maag
1999-10-21  4:00 ` Adam Price
1999-10-21  4:00   ` Robert Koehler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox