List Info

Thread: boost




boost
user name
2006-11-17 20:11:49
Hello all,

   A friend of mine gave me a boost example
(meta-pkgs/boost). I'm 95%
certain that I simply installed boost, and then compiled the
sample
application on my old NetBSD system. But now it can not find
the boost
headers.

   The boost headers are located in /usr/pkg/include/boost,
and the
sample application expects the headers boost/blah... In OS/2
I would
simply have made sure that "/usr/pkg/include" was
in the "INCLUDE"
environment variable, but I don't know what I need to do in
NetBSD to
make it work. Shouldn't there be an analogous variable to
the "INCLUDE"
in NetBSD (read: gcc, I guess), and shouldn't it be pointing
to
/usr/pkg/include/ ?

   Newbie, as you can see.

-- 
Kind regards,
Jan Danielsson


boost
user name
2006-11-17 20:18:08
On Fri, Nov 17, 2006 at 09:11:49PM +0100, Jan Danielsson
wrote:
> Hello all,
> 
>    The boost headers are located in
/usr/pkg/include/boost, and the
> sample application expects the headers boost/blah... In
OS/2 I would
> simply have made sure that "/usr/pkg/include"
was in the "INCLUDE"
> environment variable, but I don't know what I need to
do in NetBSD to
> make it work. Shouldn't there be an analogous variable
to the "INCLUDE"
> in NetBSD (read: gcc, I guess), and shouldn't it be
pointing to
> /usr/pkg/include/ ?

Many programs are written using stupid assumptions in their
build process.
With pkgsrc many of these assumptions are invalid, so you
might need
to hack up the build scripts a bit.

For include paths, you'll need to use the -I flag for the
compiler.  You
might find http://wiki.netbsd.se/index.php/Basic_Unix_programming
an
interesting read.

HTH,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital
computer
 is especially attractive, not only because it can be
economically
 and scientifically rewarding, but also because it can be an
aesthetic
 experience much like composing poetry or music."
							-- Donald Knuth
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )