Infiel
unread,Feb 21, 2012, 7:20:58 AM2/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-...@googlegroups.com
Hello,
I was trying to port a module from ns2 to ns3 (cause earlier I was working on NS2). But that module was written with the use of ITPP libraries, so, to make a taks easier (especially the initial step). I modify the wscript with lines:
conf.env.append_value("CXXFLAGS", ["-Wall", "-g", "-DNDEBUG", "-pipe", "-O2"])
conf.env.append_value("LINKFLAGS", "-litpp")
flags were obtained by:
pkg-config --cflags itpp
pkg-config --libs itpp
After that I have added an include declaration:
#include <itpp/itbase.h>
and nothing more. During compilation, I have an error:
In file included from /usr/include/itpp/base/gf2mat.h:48,
from /usr/include/itpp/itbase.h:114,
from ../src/lte/helper/geometry-helper.cc:15:
/usr/include/itpp/base/svec.h:326: error: expected unqualified-id before numeric constant
/usr/include/itpp/base/svec.h: In copy constructor ‘itpp::Sparse_Vec<T>::Sparse_Vec(const itpp::Sparse_Vec<T>&)’:
/usr/include/itpp/base/svec.h:404: error: expected unqualified-id before numeric constant
/usr/include/itpp/base/svec.h:404: error: expected ‘;’ before numeric constant
/usr/include/itpp/base/svec.h: In member function ‘itpp::Sparse_Vec<T> itpp::Sparse_Vec<T>::get_subvector(int, int) const’:
/usr/include/itpp/base/svec.h:816: error: expected unqualified-id before numeric constant
/usr/include/itpp/base/svec.h:816: error: expected ‘;’ before numeric constant
/usr/include/itpp/base/svec.h: In member function ‘void itpp::Sparse_Vec<T>::operator=(const itpp::Sparse_Vec<T>&)’:
/usr/include/itpp/base/svec.h:840: error: expected unqualified-id before numeric constant
/usr/include/itpp/base/svec.h:840: error: expected ‘;’ before numeric constant
/usr/include/itpp/base/svec.h: In member function ‘bool itpp::Sparse_Vec<T>::operator==(const itpp::Sparse_Vec<T>&)’:
/usr/include/itpp/base/svec.h:932: error: expected unqualified-id before numeric constant
=================================
What that means and how do I can overcame this problem? Is that a name conflict with some typdef od constant definitions from current NS3 code ?