P.S. This is from the latest libgig svn.
Andrew.
On Thu, May 11, 2017 at 7:04 PM, Andrew C <countfuzzb...@gmail.com> wrote:
> 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
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel