System library paths & header paths
From: Marshall (mjmcmullen_at_cox.net)
Date: 07/29/03
- Next message: totojepast: "Re: Chinese V-Dragon processor running Midori Linux"
- Previous message: ellis_at_no.spam: "Re: recommended books"
- Next in thread: phil-news-nospam_at_ipal.net: "Re: System library paths & header paths"
- Reply: phil-news-nospam_at_ipal.net: "Re: System library paths & header paths"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: totojepast: "Re: Chinese V-Dragon processor running Midori Linux"
- Previous message: ellis_at_no.spam: "Re: recommended books"
- Next in thread: phil-news-nospam_at_ipal.net: "Re: System library paths & header paths"
- Reply: phil-news-nospam_at_ipal.net: "Re: System library paths & header paths"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|