[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] what is the proper path setup?
From:       "Ferng, Andrew D" <andrew.d.ferng () boeing ! com>
Date:       2007-01-30 10:37:50
Message-ID: FC9B34F8E1507C4983431BC146CC26C9021D1D70 () XCH-NW-5V2 ! nw ! nos ! boeing ! com
[Download RAW message or body]

Ok, found the problem.  Below is my Makefile.  
Make install rather than copying to /acct/a/adf/DIR_Boost/include/boost 
instead copied to /acct/a/adf/DIR_Boost/include/boost-1_33_1/boost
I simply moved boost up one level and it worked.

In case anyone else has the same issue on AIX,
Add these to PATH:
~/DIR_Boost/include
~/DIR_Boost/lib
Compile with:
g++ -I ~/DIR_Boost/include c.cpp

------------------------------------------------------------------------
BJAM=./tools/build/jam_src/bin.aix/bjam
BJAM_CONFIG=
PREFIX=/acct/a/adf/DIR_Boost
EPREFIX=/acct/a/adf/DIR_Boost
LIBDIR=/acct/a/adf/DIR_Boost/lib
INCLUDEDIR=/acct/a/adf/DIR_Boost/include
LIBS=

all: .dummy
	@echo "$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam
$(LIBS)"
	@$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS) ||
\
	echo "Not all Boost libraries built properly."

clean: .dummy
	rm -rf bin.v2

distclean: clean
	rm -rf Makefile config.log

check: .dummy
	@cd status && ../$(BJAM) $(BJAM_CONFIG)
--user-config=user-config.jam test || echo "Some Boost regression tests
failed. This is normal."

install: .dummy
	@echo "$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam
--prefix=$(PREFIX) --exec-prefix=$(EPREFIX) --libdir=$(LIBDIR)
--includedir=$(INCLUDEDIR) $(LIBS) install"
	@$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam
--prefix=$(PREFIX) --exec-prefix=$(EPREFIX) --libdir=$(LIBDIR)
--includedir=$(INCLUDEDIR) $(LIBS) install || echo "Not all Boost
libraries built properly."

.dummy:


> _____________________________________________ 
> From: 	Ferng, Andrew D  
> Sent:	Monday, January 29, 2007 11:23 PM
> To:	boost-users@lists.boost.org
> Subject:	[Boost-users] what is the proper path setup?
> 
> I'm installing boost 1.33.1 on AIX 5.3
> 
> My home directory is /acct/a/adf
> After 'make install', it is in /DIR_Boost
> so I have the following:
> /acct/a/adf/DIR_Boost/include
> /acct/a/adf/DIR_Boost/lib
> 
> All the hpp are in:
> /acct/a/adf/DIR_Boost/include/boost-1_33_1/boost
> 
> Now I'm trying a sample program in
> /acct/a/adf/BOOST
> 
> When I compile with 'g++ c.cpp'
> I get:
> > g++ c.cpp
> c.cpp:10:28: error: boost/config.hpp: No such file or directory
> c.cpp:15:42: error: boost/graph/adjacency_list.hpp: No such file or
> directory
> c.cpp:16:48: error: boost/graph/connected_components.hpp: No such file
> or directory
> c.cpp: In function 'int main(int, char**)':
> c.cpp:41: error: 'boost' is not a namespace-name
> c.cpp:41: error: expected namespace-name before ';' token
> c.cpp:43: error: expected initializer before '<' token
> c.cpp:45: error: 'Graph' was not declared in this scope
> c.cpp:45: error: expected `;' before 'G'
> c.cpp:46: error: 'G' was not declared in this scope
> c.cpp:46: error: 'add_edge' was not declared in this scope
> c.cpp:51: error: 'num_vertices' was not declared in this scope
> c.cpp:52: error: 'connected_components' was not declared in this scope
> 
> The headers are:
> #include <boost/config.hpp>
> #include <iostream>
> #include <vector>
> #include <algorithm>
> #include <utility>
> #include <boost/graph/adjacency_list.hpp>
> #include <boost/graph/connected_components.hpp>
> 
> In .cshrc, I've already got:
> set path=(~/DIR_Boost/include/boost-1_33_1 ~/gcc/usr/local/bin $path)
> 
> Did I build boost incorrectly or am I just missing some path setup?
> 
> Thanks!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic