System library paths & header paths

From: Marshall (mjmcmullen_at_cox.net)
Date: 07/29/03


Date: 29 Jul 2003 01:06:28 -0700

Hello everyone, I am very new to programming on Linux, and hope you
can give me some advice. I have searched high and low on the best way
to accomplish this, without getting any solid answers and hope to see
how everyone else manages this problem.

I installed Motif so I can do some X Windows programming, but the
libraries were installed to /usr/X11R6/lib and the include files were
installed to /usr/X11R6/include.

The problem is these paths are not searched by default on my system
(Slackware Linux 9.0) when I compile and/or link my C program. So
what is the best way to handle this _system-wide_ ? I realize I can
add -L and -I arguments in my Makefile, but this does not seem like a
permanent solution to me. The best suggestion I found (link at
bottom) was to set the shell variables gcc references as so:
export LIBRARY_PATH=/usr/X11R6/lib
export C_INCLUDE_PATH=/usr/X11R6/include

Does anyone have a more permanent solution to this?

Thanks for your help!
Marshall

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=m2iv5l9rrf.fsf%40hubert.wustl.edu&rnum=9&prev=/groups%3Fq%3Dld%2Bpath%2Bgroup:comp.os.linux.development.system%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26group%3Dcomp.os.linux.development.system%26selm%3Dm2iv5l9rrf.fsf%2540hubert.wustl.edu%26rnum%3D9



Relevant Pages

  • Re: System library paths & header paths
    ... | Hello everyone, I am very new to programming on Linux, and hope you ... I have searched high and low on the best way ... | (Slackware Linux 9.0) when I compile and/or link my C program. ... I think you have to patch the compiler source ...
    (comp.os.linux.development.system)
  • Re: Why do so many people love Teas Instruments?
    ... that almost every modern programming language ... What you described is some "improvements" to the algebra, ... different calculators will produce different results depending on how ... She lived with Linux for a few weeks, ...
    (comp.sys.hp48)
  • Re: Upgrade all Linux Certification exams to test knowledge of PROGRAMMING!!
    ... pdf file for the previous Linux+ networking ... networking interface for Linux certified people ... Three computer programming classes plus ... programming requirement to get a LINUX+ certification a new ...
    (comp.os.linux.networking)
  • Re: Annoucning DragonFly BSD!
    ... :> http://www.dragonflybsd.org/ may be a just a troll erection, ... If Linus felt that way he would never have started Linux. ... the actual programming. ... generations of operating environments I don't believe in the immortality ...
    (freebsd-current)
  • Re: "We Never Use Assembly Language"
    ... especially about efficiency of programming with Assembly. ... in all those Assemblies in order to have it merged in the official ... Its pity that Linux cannot offer something like RosAsm. ...
    (alt.lang.asm)