Hi:
I am a newbie to the world of Boost.
I have a problem in compiling a program. I do not know how to set the path to compile the attached code.
My platform is Cygwin
gcc version 3.3.3
The boost_1_32_0 subdirectory resides in the Cygwin directory.
I tried the following,
g++ boost_1_32_0/boost/graph/sourcecode.cpp
and it displays the message
boost/config.hpp : No such file or directory
boost/graph/graph_traits.hpp : No such file or directory
boost/graph/adjacency_list.hpp : No such file or directory
boost/graph/dijkstra_shortest_paths.hpp : No such file or directory
followed by more error messages. Please refer to the attached code and help me out.
Thanks in advance.
Sourcecode.cpp
******************************************************************************
#include
Grek wrote:
I am a newbie to the world of Boost.
I have a problem in compiling a program. I do not know how to set the path to compile the attached code.
My platform is Cygwin gcc version 3.3.3
The boost_1_32_0 subdirectory resides in the Cygwin directory.
Not generally a good idea.
I tried the following,
g++ boost_1_32_0/boost/graph/sourcecode.cpp
and it displays the message boost/config.hpp : No such file or directory
You need to add to the include path to your compiler. See: http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Preprocessor-Options.html#Prepro... Preprocessor Options - Using the GNU Compiler Collection (GCC) And for Boost related building/setup see: http://www.boost.org/more/getting_started.html Getting Started -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
participants (2)
-
Grek
-
Rene Rivera