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
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:
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