compile error under GCC 3.4.4, but successfully compiled by GCC 3.2.3
I successfully compiled my program with GCC 3.2.3 on a Linux (Red Hat Linux 3.2.3-56) box. When I tried to compile the same program with GCC 3.4.4 on a Solaris box, it gave me the following errors. Can anyone help me figure out why it is happening? #g++ -O -I./boost_1_25_1 -Wall beaconfsa.cpp ./boost_1_25_1/boost/config/compiler/gcc.hpp:57:7: warning: #warning "Unknown compiler version - please run the configu re tests and report the results" In file included from ./boost_1_25_1/boost/graph/graph_utility.hpp:42, from ./boost_1_25_1/boost/graph/detail/adjacency_list.hpp:43, from ./boost_1_25_1/boost/graph/adjacency_list.hpp:293, from beaconfsa.cpp:19: ./boost_1_25_1/boost/graph/depth_first_search.hpp: In function `void boost::depth_first_search(const VertexListGraph&, const boost::bgl_named_params
&)':
./boost_1_25_1/boost/graph/depth_first_search.hpp:167: error: there are no
arguments to `make_dfs_visitor' that depend on a template
parameter, so a declaration of `make_dfs_visitor' must be available
./boost_1_25_1/boost/graph/depth_first_search.hpp:167: error: (if you use
`-fpermissive', G++ will accept your code, bu t allowing
the use of an undeclared name is deprecated)
In file included from
./boost_1_25_1/boost/graph/dijkstra_shortest_paths.hpp:39,
from beaconfsa.cpp:22:
./boost_1_25_1/boost/pending/mutable_queue.hpp: In member function `bool
boost::mutable_queue
--- sean yang wrote:
I successfully compiled my program with GCC 3.2.3 on a Linux (Red Hat Linux 3.2.3-56) box. When I tried to compile the same program with GCC 3.4.4 on a Solaris box, it gave me the following errors. Can anyone help me figure out why it is happening?
#g++ -O -I./boost_1_25_1 -Wall beaconfsa.cpp
Unless you have a compelling reason not to, try upgrading to Boost 1.33.1. Cromwell D. Enage __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (2)
-
Cromwell Enage
-
sean yang