Andrew C
2017-05-11 19:04:40 UTC
Hey guys,
I'm trying to compile Libgig on UbuntuStudio 16.04 and I'm getting a
compile time error.
Here's the version of g++ i'm using:
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Thanks in advance, guys :)
Andrew.
---
Here's the error messages:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pedantic
-Wreturn-type -g -O2 -MT gig.lo -MD -MP -MF .deps/gig.Tpo -c gig.cpp
-fPIC -DPIC -o .libs/gig.o
In file included from gig.cpp:24:0:
gig.h:85:33: warning: anonymous variadic macros were introduced in
C++11 [-Wvariadic-macros]
# define GIG_DECLARE_ENUM(type, ...) enum type { __VA_ARGS__ }
^
In file included from gig.cpp:27:0:
Serialization.h: In function âbool Serialization::IsClass(const T&)â:
Serialization.h:138:16: error: â__is_union_or_classâ is not a member
of âstd::tr1â
return std::tr1::__is_union_or_class<T>::value; // without compiler sup
^
Serialization.h:138:47: error: expected primary-expression before â>â token
return std::tr1::__is_union_or_class<T>::value; // without compiler sup
^
Serialization.h:138:48: error: â::valueâ has not been declared
return std::tr1::__is_union_or_class<T>::value; // without compiler sup
^
Serialization.h: At global scope:
Serialization.h:40:32: error: â__is_union_or_classâ is not a member of
âstd::tr1â
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:40:32: error: â__is_union_or_classâ is not a member of
âstd::tr1â
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:40:66: error: template argument 2 is invalid
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:40:67: error: expected â{â before â::â token
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:700:89: error: expected initializer before â>â token
ct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_CLASS(T)> {
^
Serialization.h:701:10: warning: extra â;â [-Wpedantic]
};
^
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::leverage_ctrl_t;
T_memberType = gig::leverage_ctrl_t::type_t]â:
gig.cpp:326:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<gig::leverage_ctrl_t::type_t>â
used in nested name specifier
SerializationRecursion<T_memberType>::serializeObject(this, nati
^
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::leverage_ctrl_t;
T_memberType = unsigned int]â:
gig.cpp:327:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<unsigned int>â used in
nested name specifier
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::crossfade_t;
T_memberType = unsigned char]â:
gig.cpp:336:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<unsigned char>â used
in nested name specifier
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::DimensionRegion;
T_memberType = unsigned char]â:
gig.cpp:1820:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<unsigned char>â used
in nested name specifier
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::DimensionRegion;
T_memberType = short unsigned int]â:
gig.cpp:1821:9: required from here
I'm trying to compile Libgig on UbuntuStudio 16.04 and I'm getting a
compile time error.
Here's the version of g++ i'm using:
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Thanks in advance, guys :)
Andrew.
---
Here's the error messages:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pedantic
-Wreturn-type -g -O2 -MT gig.lo -MD -MP -MF .deps/gig.Tpo -c gig.cpp
-fPIC -DPIC -o .libs/gig.o
In file included from gig.cpp:24:0:
gig.h:85:33: warning: anonymous variadic macros were introduced in
C++11 [-Wvariadic-macros]
# define GIG_DECLARE_ENUM(type, ...) enum type { __VA_ARGS__ }
^
In file included from gig.cpp:27:0:
Serialization.h: In function âbool Serialization::IsClass(const T&)â:
Serialization.h:138:16: error: â__is_union_or_classâ is not a member
of âstd::tr1â
return std::tr1::__is_union_or_class<T>::value; // without compiler sup
^
Serialization.h:138:47: error: expected primary-expression before â>â token
return std::tr1::__is_union_or_class<T>::value; // without compiler sup
^
Serialization.h:138:48: error: â::valueâ has not been declared
return std::tr1::__is_union_or_class<T>::value; // without compiler sup
^
Serialization.h: At global scope:
Serialization.h:40:32: error: â__is_union_or_classâ is not a member of
âstd::tr1â
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:40:32: error: â__is_union_or_classâ is not a member of
âstd::tr1â
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:40:66: error: template argument 2 is invalid
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:40:67: error: expected â{â before â::â token
# define LIBGIG_IS_CLASS(type) std::tr1::__is_union_or_class<type>::value //NOT
^
Serialization.h:700:71: note: in expansion of macro âLIBGIG_IS_CLASSâ
struct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_C
^
Serialization.h:700:89: error: expected initializer before â>â token
ct SerializationRecursion : SerializationRecursionImpl<T, LIBGIG_IS_CLASS(T)> {
^
Serialization.h:701:10: warning: extra â;â [-Wpedantic]
};
^
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::leverage_ctrl_t;
T_memberType = gig::leverage_ctrl_t::type_t]â:
gig.cpp:326:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<gig::leverage_ctrl_t::type_t>â
used in nested name specifier
SerializationRecursion<T_memberType>::serializeObject(this, nati
^
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::leverage_ctrl_t;
T_memberType = unsigned int]â:
gig.cpp:327:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<unsigned int>â used in
nested name specifier
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::crossfade_t;
T_memberType = unsigned char]â:
gig.cpp:336:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<unsigned char>â used
in nested name specifier
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::DimensionRegion;
T_memberType = unsigned char]â:
gig.cpp:1820:9: required from here
Serialization.h:605:70: error: incomplete type
âSerialization::Archive::SerializationRecursion<unsigned char>â used
in nested name specifier
Serialization.h: In instantiation of âvoid
Serialization::Archive::serializeMember(const T_classType&, const
T_memberType&, const char*) [with T_classType = gig::DimensionRegion;
T_memberType = short unsigned int]â:
gig.cpp:1821:9: required from here