Boost logo

Boost Users :

From: Ferng, Andrew D (andrew.d.ferng_at_[hidden])
Date: 2007-01-30 02:23:07


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!


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net