hi list
I am using boost to build a small tool that generate a
(GRAPHICAL) graph showing dependecies between files ;)
I donc guess why g++ returns to me this error.
any input will be helpful
thanks
Ps : excuse me. I will copy all the source file and the error.
you can find it a long.
#include
adel.essafi wrote:
hi list I am using boost to build a small tool that generate a (GRAPHICAL) graph showing dependecies between files ;) I donc guess why g++ returns to me this error. any input will be helpful thanks Ps : excuse me. I will copy all the source file and the error. you can find it a long.
#include
#include #include #include #include #include #include #include <fstream> #include <string> #include <iostream> #include <algorithm> #include <string> #include #include #include #include ... g++ -o filetree main.cpp -I /usr/lib/qt-3.1/include -L /usr/lib/qt-3.1/lib -lqt Dans le fichier inclus à partir de /usr/include/c++/3.3.2/backward/iostream.h:31, à partir de main.cpp:4: /usr/include/c++/3.3.2/backward/backward_warning.h:32:2: attention : #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the header for C++ includes, or <sstream> instead of the deprecated header .
Remove the includes of
adel.essafi wrote:
hi list I am using boost to build a small tool that generate a (GRAPHICAL) graph showing dependecies between files ;) I donc guess why g++ returns to me this error. any input will be helpful thanks Ps : excuse me. I will copy all the source file and the error. you can find it a long.
Dick Hadsell has offered you advice about fixing up your included headers, in particular to resolve the "deprecated or antiquated header" warning. However, you are left with the error:
main.cpp: Dans function « int main(int, char**) »: main.cpp:67: error: invalid initialization of reference of type 'const boost::property
&' from expression of type 'size_t'
i.e. you are passing a variable of the wrong type as the first parameter to add_vertex.
for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { boost::graph_traits<MyGraphType>::vertex_descriptor v; name[v]=*it; add_vertex(v,G); cerr << *it << endl; filesnum++; }
Instead try:
for ( QStringList::Iterator it = lst.begin(); it !=
lst.end(); ++it ) {
boost::graph_traits<MyGraphType>::vertex_descriptor v;
// name[v]=*it; This throws from QString
property
participants (3)
-
adel.essafi
-
Richard Hadsell
-
Stephen Jackson