On Thursday 28 July 2011 02:12:32 florent ainardi wrote: > > If you're installing using pre-built packages make sure you also install > > the devel packages, those have the headers necessary for software > > development (hence the devel suffix). For RPM based systems it would be > > nspr-devel, nss-devel, nss-util-devel (because you need both nspr and > > nss). > > > > Understanding where to find headers, how to install packages, etc. are > > OS specific issues better dealt on a mailing list devoted to software > > development on you're chosen OS. > > > > Hope that helps and gets you started, > > > > John > hi > i found what is the problem ^^ > let me explain > in my programm i have > > #include <nss.h> > #include <pk11pub.h> > > and when i look inside the nss.h or pk11pub.h all library are called > using the following method #include "lib.h" but all the lib of nss are > in the following directory > > /usr/include > /usr/include/nss > /usr/incldue/nspr > > but if i use "" the libs must be in the same directory than the source > code This isn't correct, and I'd prefer to not let it be a source of confusion for other developers.
As John pointed out, you need to specify the correct include paths (e.g. -I using gcc). You can get that include path from nspr-config or nss-config, and integrate it into whatever build system you are using. bradh@incana:~$ nss-config --includedir /usr/include/nss bradh@incana:~$ nspr-config --includedir /usr/include/nspr Brad -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto