Date: Thu, 25 Sep 1997 11:14:15 +0200 From: Robin Huiser <robinh@htsa.hva.nl> To: Annelise Anderson <andrsn@andrsn.stanford.edu>, FreeBSD Questions Mailing List <freebsd-questions@FreeBSD.ORG> Subject: Re: Problems with headers/libs Message-ID: <342A2B63.5D919436@htsa.hva.nl> References: <Pine.BSF.3.96.970924083934.2829A-100000@andrsn.stanford.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Annelise Anderson wrote: > On Wed, 24 Sep 1997, Robin Huiser wrote: > > > Hi there! > > > > It seems that FreeBSD 2.2.2 has some troubles finding my standard > > header-files > > and libraries like "X11/...", "Xm/..." and /usr/X11R6/lib/* > > It works fine when I tell the compiler with some command line options > > where to > > find these header-files and libs, but there must be another way. > > > > When I try to build with xmkmf, I have the same problems, the compiler > > returns > > the following error: > > > > {example when I try to compile hello.CC} > > > > hello.CC:5: Xm/PushB.h: No such file or directory > > > > When I browse /usr/X11R6/include/Xm, the file PushB.h really excists! > > > > Please help me! > > I've had some trouble with finding libraries too. > > It seems they ought to be set in rc, without changing rc. See the > ldconfig lines there. > > You can see what library paths the system knows about with > ldconfig -r. > > You can add a path with ldconfig -m /usr/X11R6/include/whatever, > for example. This merges instead of replaces. > I put this in rc.local: > > ldconfig -m /usr/X11R6/lib /usr/local/lib /usr/lib/compat > > which is basically what rc is supposed to do but didn't seem to be > doing. You can add directories. > > Annelise Thanks for your advise! The compiler can find the libraries now, but I have still a problem finding the <include> files! Greets, -- Robin Huiser ,,, (o o) ()========================oOO==(_)==OOo==========================() Robin Huiser HVA Faculteit Electrotechniek & Informatica E-mail: robinh@htsa.hva.nl Important Unix command: echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?342A2B63.5D919436>