Menu

"Error: template with C linkage" while building run_single_zone

Anonymous
2016-07-18
2016-08-10
  • Anonymous

    Anonymous - 2016-07-18

    Dear colleagues,

    I am having some difficulty in making the run-single-zone code, I have the following errors.
    I'm running Ubuntu 16.04 and GCC 4.8.5.

    Thank you in advance for your help.


    make run_single_zone
    tar xz -C ../../vendor -f ../../vendor/wn_matrix.tar.gz
    g++ -Werror -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings -fshort-enums -fno-common -g -ansi -Wconversion -O0 -fopenmp -Wno-deprecated -DHYDRO_EXP_EXPANSION -Wno-error=sign-compare xml2-config --cflags gsl-config --cflags -I../../vendor/libnucnet/0.27/src -I../../vendor/wn_matrix/0.17/src -I../../vendor/libstatmech/0.9/src -I../../vendor/libnuceq/0.5/src -I../.. -I ../../vendor/wn_sparse_solve/0.5/src -c ../../vendor/wn_matrix/0.17/src/WnMatrix.c -o ../../obj/WnMatrix.o
    In file included from /usr/include/c++/4.8/bits/stringfwd.h:40:0,
    from /usr/include/c++/4.8/string:39,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/memoryfwd.h:63:3: error: template with C linkage
    template<typename>
    ^
    /usr/include/c++/4.8/bits/memoryfwd.h:66:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/memoryfwd.h:70:3: error: template with C linkage
    template<typename, typename="">
    ^
    In file included from /usr/include/c++/4.8/string:39:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/stringfwd.h:52:3: error: template with C linkage
    template<class _CharT="">
    ^
    /usr/include/c++/4.8/bits/stringfwd.h:55:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT">,
    ^
    /usr/include/c++/4.8/bits/stringfwd.h:59:3: error: template specialization with C linkage
    template<> struct char_traits<char>;
    ^
    /usr/include/c++/4.8/bits/stringfwd.h:65:3: error: template specialization with C linkage
    template<> struct char_traits<wchar_t>;
    ^
    In file included from /usr/include/c++/4.8/bits/stl_algobase.h:61:0,
    from /usr/include/c++/4.8/bits/char_traits.h:39,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/cpp_type_traits.h:72:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:85:3: error: template with C linkage
    template<bool>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:89:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:95:3: error: template with C linkage
    template<class _Sp,="" class="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:103:3: error: template with C linkage
    template<typename, typename="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:110:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:118:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:125:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:135:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:145:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:152:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:159:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:166:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:174:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:198:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:205:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:212:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:219:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:226:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:233:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:240:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:247:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:257:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:265:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:272:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:279:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:289:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:296:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:306:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:313:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:324:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:332:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:340:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:348:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:355:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:363:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:371:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:378:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:385:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:392:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/cpp_type_traits.h:402:3: error: template with C linkage
    template<typename _Tp="">
    ^
    In file included from /usr/include/c++/4.8/bits/stl_algobase.h:62:0,
    from /usr/include/c++/4.8/bits/char_traits.h:39,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/ext/type_traits.h:42:3: error: template with C linkage
    template<bool, typename="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:46:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:52:3: error: template with C linkage
    template<bool _Cond,="" typename="" _Iftrue,="" typename="" _Iffalse="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:56:3: error: template with C linkage
    template<typename _Iftrue,="" typename="" _Iffalse="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:62:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:72:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:76:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:80:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:84:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:88:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:92:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:97:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:100:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:105:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:115:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:119:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:123:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:127:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:131:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:135:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:140:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:143:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:148:3: error: template with C linkage
    template<typename _Type="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:153:3: error: template with C linkage
    template<typename _Type="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:160:3: error: template with C linkage
    template<typename _Tp,="" bool="std::__is_integer&lt;_Tp">::value>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:167:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/ext/type_traits.h:171:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:175:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:179:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/ext/type_traits.h:183:3: error: template with C linkage
    template<typename _Tp,="" typename="" _Up,="" ^="" usr="" include="" c++="" 4.8="" ext="" type_traits.h:191:3:="" error:="" template="" with="" C="" linkage="" template<typename="" _Tp,="" typename="" _Up,="" typename="" _Vp,="" ^="" usr="" include="" c++="" 4.8="" ext="" type_traits.h:200:3:="" error:="" template="" with="" C="" linkage="" template<typename="" _Tp,="" typename="" _Up,="" typename="" _Vp,="" typename="" _Wp,="" ^="" In="" file="" included="" from="" usr="" include="" c++="" 4.8="" bits="" stl_algobase.h:63:0,="" from="" usr="" include="" c++="" 4.8="" bits="" char_traits.h:39,="" from="" usr="" include="" c++="" 4.8="" string:40,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" std_string.h:33,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" unistr.h:31,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" strenum.h:14,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" uenum.h:24,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" ucnv.h:51,="" from="" usr="" include="" libxml2="" libxml="" encoding.h:31,="" from="" usr="" include="" libxml2="" libxml="" parser.h:810,="" from="" usr="" include="" libxml2="" libxml="" hash.h:29,="" from="" ..="" ..="" vendor="" wn_matrix="" 0.17="" src="" WnMatrix.h:60,="" from="" ..="" ..="" vendor="" wn_matrix="" 0.17="" src="" WnMatrix.c:40:="" usr="" include="" c++="" 4.8="" ext="" numeric_traits.h:54:3:="" error:="" template="" with="" C="" linkage="" template<typename="" _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:67:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:70:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:73:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:76:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:99:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:111:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:114:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:117:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:120:3: error: template with C linkage
    template<typename _Value="">
    ^
    /usr/include/c++/4.8/ext/numeric_traits.h:123:3: error: template with C linkage
    template<typename _Value="">
    ^
    In file included from /usr/include/c++/4.8/bits/stl_pair.h:59:0,
    from /usr/include/c++/4.8/bits/stl_algobase.h:64,
    from /usr/include/c++/4.8/bits/char_traits.h:39,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/move.h:45:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/move.h:164:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/move.h:183:3: error: template with C linkage
    template<typename _Tp,="" size_t="" _Nm="">
    ^
    In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
    from /usr/include/c++/4.8/bits/char_traits.h:39,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/stl_pair.h:95:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    /usr/include/c++/4.8/bits/stl_pair.h:212:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    /usr/include/c++/4.8/bits/stl_pair.h:218:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    /usr/include/c++/4.8/bits/stl_pair.h:225:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    /usr/include/c++/4.8/bits/stl_pair.h:231:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    /usr/include/c++/4.8/bits/stl_pair.h:237:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    /usr/include/c++/4.8/bits/stl_pair.h:243:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    /usr/include/c++/4.8/bits/stl_pair.h:284:3: error: template with C linkage
    template<class _T1,="" class="" _T2="">
    ^
    In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
    from /usr/include/c++/4.8/bits/char_traits.h:39,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:3: error: template with C linkage
    template<typename _Category,="" typename="" _Tp,="" typename="" _Distance="ptrdiff_t," ^="" usr="" include="" c++="" 4.8="" bits="" stl_iterator_base_types.h:162:3:="" error:="" template="" with="" C="" linkage="" template<typename="" _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_types.h:174:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_types.h:185:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_types.h:199:3: error: template with C linkage
    template<typename _Iter="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_types.h:208:3: error: template with C linkage
    template<typename _Iterator,="" bool="" _HasBase="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_types.h:216:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
    from /usr/include/c++/4.8/bits/char_traits.h:39,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:71:3: error: template with C linkage
    template<typename _InputIterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:88:3: error: template with C linkage
    template<typename _RandomAccessIterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:112:3: error: template with C linkage
    template<typename _InputIterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:121:3: error: template with C linkage
    template<typename _InputIterator,="" typename="" _Distance="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:132:3: error: template with C linkage
    template<typename _BidirectionalIterator,="" typename="" _Distance="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:148:3: error: template with C linkage
    template<typename _RandomAccessIterator,="" typename="" _Distance="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:171:3: error: template with C linkage
    template<typename _InputIterator,="" typename="" _Distance="">
    ^
    In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
    from /usr/include/c++/4.8/bits/char_traits.h:39,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/stl_iterator.h:95:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:289:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:295:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:301:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:307:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:313:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:319:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:325:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:331:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:339:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:345:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:351:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:357:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:363:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:369:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:375:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:401:3: error: template with C linkage
    template<typename _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:477:3: error: template with C linkage
    template<typename _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:492:3: error: template with C linkage
    template<typename _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:567:3: error: template with C linkage
    template<typename _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:586:3: error: template with C linkage
    template<typename _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:681:3: error: template with C linkage
    template<typename _Container,="" typename="" _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:707:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:803:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:809:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:815:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:821:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:828:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:834:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:840:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:846:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:852:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:858:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:864:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:870:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:880:3: error: template with C linkage
    template<typename _IteratorL,="" typename="" _IteratorR,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:894:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    /usr/include/c++/4.8/bits/stl_iterator.h:900:3: error: template with C linkage
    template<typename _Iterator,="" typename="" _Container="">
    ^
    In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
    from /usr/include/c++/4.8/string:40,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/stl_algobase.h:80:3: error: template with C linkage
    template<bool _BoolType="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:95:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:117:3: error: template with C linkage
    template<typename _ForwardIterator1,="" typename="" _ForwardIterator2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:163:3: error: template with C linkage
    template<typename _ForwardIterator1,="" typename="" _ForwardIterator2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:191:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:214:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:237:3: error: template with C linkage
    template<typename _Tp,="" typename="" _Compare="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:258:3: error: template with C linkage
    template<typename _Tp,="" typename="" _Compare="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:270:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:275:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:281:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:286:3: error: template with C linkage
    template<typename _Iterator="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:297:3: error: template with C linkage
    template<bool, bool,="" typename="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:325:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:363:3: error: template with C linkage
    template<bool _IsMove="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:377:3: error: template with C linkage
    template<bool _IsMove,="" typename="" _II,="" typename="" _OI="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:395:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:398:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:401:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:404:3: error: template with C linkage
    template<bool _IsMove,="" typename="" _CharT="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:410:3: error: template with C linkage
    template<bool _IsMove,="" typename="" _CharT="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:416:3: error: template with C linkage
    template<bool _IsMove,="" typename="" _CharT="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:422:3: error: template with C linkage
    template<bool _IsMove,="" typename="" _II,="" typename="" _OI="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:448:3: error: template with C linkage
    template<typename _II,="" typename="" _OI="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:500:3: error: template with C linkage
    template<bool, bool,="" typename="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:528:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:558:3: error: template with C linkage
    template<bool _IsMove="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:572:3: error: template with C linkage
    template<bool _IsMove,="" typename="" _BI1,="" typename="" _BI2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:590:3: error: template with C linkage
    template<bool _IsMove,="" typename="" _BI1,="" typename="" _BI2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:617:3: error: template with C linkage
    template<typename _BI1,="" typename="" _BI2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:675:3: error: template with C linkage
    template<typename _ForwardIterator,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:685:3: error: template with C linkage
    template<typename _ForwardIterator,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:697:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:719:3: error: template with C linkage
    template<typename _ForwardIterator,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:732:3: error: template with C linkage
    template<typename _OutputIterator,="" typename="" _Size,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:743:3: error: template with C linkage
    template<typename _OutputIterator,="" typename="" _Size,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:755:3: error: template with C linkage
    template<typename _Size,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:779:3: error: template with C linkage
    template<typename _OI,="" typename="" _Size,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:789:3: error: template with C linkage
    template<bool _BoolType="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:803:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:815:3: error: template with C linkage
    template<typename _II1,="" typename="" _II2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:831:3: error: template with C linkage
    template<typename, typename="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:845:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:866:3: error: template with C linkage
    template<bool _BoolType="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:873:3: error: template with C linkage
    template<bool _BoolType="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:896:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:912:3: error: template with C linkage
    template<typename _II1,="" typename="" _II2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:941:3: error: template with C linkage
    template<typename _ForwardIterator,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h: In function ‘unsigned int std::
    lg(unsigned int)’:
    /usr/include/c++/4.8/bits/stl_algobase.h:984:20: error: declaration of C function ‘unsigned int std::lg(unsigned int)’ conflicts with
    lg(unsigned n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:980:3: error: previous declaration ‘int std::
    lg(int)’ here
    lg(int n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h: In function ‘long int std::lg(long int)’:
    /usr/include/c++/4.8/bits/stl_algobase.h:988:16: error: declaration of C function ‘long int std::
    lg(long int)’ conflicts with
    lg(long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:984:3: error: previous declaration ‘unsigned int std::lg(unsigned int)’ here
    lg(unsigned n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:988:16: error: declaration of C function ‘long int std::
    lg(long int)’ conflicts with
    lg(long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:980:3: error: previous declaration ‘int std::lg(int)’ here
    lg(int n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h: In function ‘long unsigned int std::
    lg(long unsigned int)’:
    /usr/include/c++/4.8/bits/stl_algobase.h:992:25: error: declaration of C function ‘long unsigned int std::lg(long unsigned int)’ conflicts with
    lg(unsigned long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:988:3: error: previous declaration ‘long int std::
    lg(long int)’ here
    lg(long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:992:25: error: declaration of C function ‘long unsigned int std::lg(long unsigned int)’ conflicts with
    lg(unsigned long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:984:3: error: previous declaration ‘unsigned int std::
    lg(unsigned int)’ here
    lg(unsigned n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:992:25: error: declaration of C function ‘long unsigned int std::lg(long unsigned int)’ conflicts with
    lg(unsigned long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:980:3: error: previous declaration ‘int std::
    lg(int)’ here
    lg(int n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h: In function ‘long long int std::lg(long long int)’:
    /usr/include/c++/4.8/bits/stl_algobase.h:996:21: error: declaration of C function ‘long long int std::
    lg(long long int)’ conflicts with
    lg(long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:992:3: error: previous declaration ‘long unsigned int std::lg(long unsigned int)’ here
    lg(unsigned long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:996:21: error: declaration of C function ‘long long int std::
    lg(long long int)’ conflicts with
    lg(long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:988:3: error: previous declaration ‘long int std::lg(long int)’ here
    lg(long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:996:21: error: declaration of C function ‘long long int std::
    lg(long long int)’ conflicts with
    lg(long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:984:3: error: previous declaration ‘unsigned int std::lg(unsigned int)’ here
    lg(unsigned n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:996:21: error: declaration of C function ‘long long int std::
    lg(long long int)’ conflicts with
    lg(long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:980:3: error: previous declaration ‘int std::lg(int)’ here
    lg(int n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h: In function ‘long long unsigned int std::
    lg(long long unsigned int)’:
    /usr/include/c++/4.8/bits/stl_algobase.h:1000:30: error: declaration of C function ‘long long unsigned int std::lg(long long unsigned int)’ conflicts with
    lg(unsigned long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:996:3: error: previous declaration ‘long long int std::
    lg(long long int)’ here
    lg(long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1000:30: error: declaration of C function ‘long long unsigned int std::lg(long long unsigned int)’ conflicts with
    lg(unsigned long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:992:3: error: previous declaration ‘long unsigned int std::
    lg(long unsigned int)’ here
    lg(unsigned long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1000:30: error: declaration of C function ‘long long unsigned int std::lg(long long unsigned int)’ conflicts with
    lg(unsigned long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:988:3: error: previous declaration ‘long int std::
    lg(long int)’ here
    lg(long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1000:30: error: declaration of C function ‘long long unsigned int std::lg(long long unsigned int)’ conflicts with
    lg(unsigned long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:984:3: error: previous declaration ‘unsigned int std::
    lg(unsigned int)’ here
    lg(unsigned n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1000:30: error: declaration of C function ‘long long unsigned int std::lg(long long unsigned int)’ conflicts with
    lg(unsigned long long n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:980:3: error: previous declaration ‘int std::
    lg(int)’ here
    lg(int n)
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h: At global scope:
    /usr/include/c++/4.8/bits/stl_algobase.h:1019:3: error: template with C linkage
    template<typename _II1,="" typename="" _II2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1051:3: error: template with C linkage
    template<typename _IIter1,="" typename="" _IIter2,="" typename="" _BinaryPredicate="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1082:3: error: template with C linkage
    template<typename _II1,="" typename="" _II2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1118:3: error: template with C linkage
    template<typename _II1,="" typename="" _II2,="" typename="" _Compare="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1158:3: error: template with C linkage
    template<typename _InputIterator1,="" typename="" _InputIterator2="">
    ^
    /usr/include/c++/4.8/bits/stl_algobase.h:1195:3: error: template with C linkage
    template<typename _InputIterator1,="" typename="" _InputIterator2,="" ^="" In="" file="" included="" from="" usr="" include="" c++="" 4.8="" bits="" char_traits.h:40:0,="" from="" usr="" include="" c++="" 4.8="" string:40,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" std_string.h:33,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" unistr.h:31,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" strenum.h:14,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" uenum.h:24,="" from="" usr="" include="" x86_64-linux-gnu="" unicode="" ucnv.h:51,="" from="" usr="" include="" libxml2="" libxml="" encoding.h:31,="" from="" usr="" include="" libxml2="" libxml="" parser.h:810,="" from="" usr="" include="" libxml2="" libxml="" hash.h:29,="" from="" ..="" ..="" vendor="" wn_matrix="" 0.17="" src="" WnMatrix.h:60,="" from="" ..="" ..="" vendor="" wn_matrix="" 0.17="" src="" WnMatrix.c:40:="" usr="" include="" c++="" 4.8="" bits="" postypes.h:111:3:="" error:="" template="" with="" C="" linkage="" template<typename="" _StateT="">
    ^
    /usr/include/c++/4.8/bits/postypes.h:214:3: error: template with C linkage
    template<typename _StateT="">
    ^
    /usr/include/c++/4.8/bits/postypes.h:219:3: error: template with C linkage
    template<typename _StateT="">
    ^
    In file included from /usr/include/c++/4.8/string:40:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/char_traits.h:57:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:82:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:142:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:155:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:166:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:177:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:186:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:196:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:226:3: error: template with C linkage
    template<class _CharT="">
    ^
    /usr/include/c++/4.8/bits/char_traits.h:232:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/char_traits.h:303:3: error: template specialization with C linkage
    template<>
    ^
    In file included from /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++allocator.h:33:0,
    from /usr/include/c++/4.8/bits/allocator.h:46,
    from /usr/include/c++/4.8/string:41,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/ext/new_allocator.h:57:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/ext/new_allocator.h:137:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/ext/new_allocator.h:142:3: error: template with C linkage
    template<typename _Tp="">
    ^
    In file included from /usr/include/c++/4.8/string:41:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/allocator.h:62:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/allocator.h:91:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/allocator.h:126:3: error: template with C linkage
    template<typename _T1,="" typename="" _T2="">
    ^
    /usr/include/c++/4.8/bits/allocator.h:131:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/allocator.h:136:3: error: template with C linkage
    template<typename _T1,="" typename="" _T2="">
    ^
    /usr/include/c++/4.8/bits/allocator.h:141:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/allocator.h:159:3: error: template with C linkage
    template<typename _Alloc,="" bool="__is_empty(_Alloc)">
    ^
    /usr/include/c++/4.8/bits/allocator.h:163:3: error: template with C linkage
    template<typename _Alloc="">
    ^
    /usr/include/c++/4.8/bits/allocator.h:176:3: error: template with C linkage
    template<typename _Alloc,="" bool="__is_empty(_Alloc)">
    ^
    /usr/include/c++/4.8/bits/allocator.h:184:3: error: template with C linkage
    template<typename _Alloc="">
    ^
    In file included from /usr/include/c++/4.8/bits/localefwd.h:41:0,
    from /usr/include/c++/4.8/string:43,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/iosfwd:76:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:79:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:82:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:85:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:88:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:91:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT">,
    ^
    /usr/include/c++/4.8/iosfwd:95:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT">,
    ^
    /usr/include/c++/4.8/iosfwd:99:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT">,
    ^
    /usr/include/c++/4.8/iosfwd:103:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT">,
    ^
    /usr/include/c++/4.8/iosfwd:107:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:110:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:113:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:116:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:119:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/iosfwd:122:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="char_traits&lt;_CharT"> >
    ^
    In file included from /usr/include/c++/4.8/string:43:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/localefwd.h:57:3: error: template with C linkage
    template<typename _Facet="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:61:3: error: template with C linkage
    template<typename _Facet="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:66:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:70:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:74:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:78:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:82:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:86:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:90:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:94:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:98:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:102:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:106:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:110:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:114:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:120:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:122:3: error: template specialization with C linkage
    template<> class ctype<char>;
    ^
    /usr/include/c++/4.8/bits/localefwd.h:124:3: error: template specialization with C linkage
    template<> class ctype<wchar_t>;
    ^
    /usr/include/c++/4.8/bits/localefwd.h:126:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:131:3: error: template with C linkage
    template<typename _InternT,="" typename="" _ExternT,="" typename="" _StateT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:133:3: error: template specialization with C linkage
    template<> class codecvt<char, char,="" mbstate_t="">;
    ^
    /usr/include/c++/4.8/bits/localefwd.h:135:3: error: template specialization with C linkage
    template<> class codecvt<wchar_t, char,="" mbstate_t="">;
    ^
    /usr/include/c++/4.8/bits/localefwd.h:137:3: error: template with C linkage
    template<typename _InternT,="" typename="" _ExternT,="" typename="" _StateT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:142:3: error: template with C linkage
    template<typename _CharT,="" typename="" _InIter="istreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:144:3: error: template with C linkage
    template<typename _CharT,="" typename="" _OutIter="ostreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:147:3: error: template with C linkage
    template<typename _CharT=""> class numpunct;
    ^
    /usr/include/c++/4.8/bits/localefwd.h:148:3: error: template with C linkage
    template<typename _CharT=""> class numpunct_byname;
    ^
    /usr/include/c++/4.8/bits/localefwd.h:151:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:153:3: error: template with C linkage
    template<typename _CharT=""> class
    ^
    /usr/include/c++/4.8/bits/localefwd.h:158:3: error: template with C linkage
    template<typename _CharT,="" typename="" _InIter="istreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:160:3: error: template with C linkage
    template<typename _CharT,="" typename="" _InIter="istreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:162:3: error: template with C linkage
    template<typename _CharT,="" typename="" _OutIter="ostreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:164:3: error: template with C linkage
    template<typename _CharT,="" typename="" _OutIter="ostreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:170:3: error: template with C linkage
    template<typename _CharT,="" typename="" _InIter="istreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:172:3: error: template with C linkage
    template<typename _CharT,="" typename="" _OutIter="ostreambuf_iterator&lt;_CharT"> >
    ^
    /usr/include/c++/4.8/bits/localefwd.h:175:3: error: template with C linkage
    template<typename _CharT,="" bool="" _Intl="false">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:177:3: error: template with C linkage
    template<typename _CharT,="" bool="" _Intl="false">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:182:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/localefwd.h:184:3: error: template with C linkage
    template<typename _CharT="">
    ^
    In file included from /usr/include/c++/4.8/string:44:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/ostream_insert.h:42:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="">
    ^
    /usr/include/c++/4.8/bits/ostream_insert.h:55:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="">
    ^
    /usr/include/c++/4.8/bits/ostream_insert.h:74:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits="">
    ^
    In file included from /usr/include/c++/4.8/string:48:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/stl_function.h:100:3: error: template with C linkage
    template<typename _Arg,="" typename="" _Result="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:113:3: error: template with C linkage
    template<typename _Arg1,="" typename="" _Arg2,="" typename="" _Result="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:139:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:148:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:157:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:166:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:175:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:184:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:203:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:212:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:221:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:230:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:239:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:248:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:267:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:276:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:285:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:296:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:304:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:312:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:350:3: error: template with C linkage
    template<typename _Predicate="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:367:3: error: template with C linkage
    template<typename _Predicate="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:373:3: error: template with C linkage
    template<typename _Predicate="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:392:3: error: template with C linkage
    template<typename _Predicate="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:421:3: error: template with C linkage
    template<typename _Arg,="" typename="" _Result="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:440:3: error: template with C linkage
    template<typename _Arg,="" typename="" _Result="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:446:3: error: template with C linkage
    template<typename _Arg1,="" typename="" _Arg2,="" typename="" _Result="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:466:3: error: template with C linkage
    template<typename _Arg1,="" typename="" _Arg2,="" typename="" _Result="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:472:3: error: template with C linkage
    template<typename _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:485:3: error: template with C linkage
    template<typename _Pair="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:510:3: error: template with C linkage
    template<typename _Pair="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:541:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:559:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:577:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:595:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:613:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:631:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:649:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:667:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:685:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:690:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:695:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:700:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:705:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:710:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:715:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    /usr/include/c++/4.8/bits/stl_function.h:720:3: error: template with C linkage
    template<typename _Ret,="" typename="" _Tp,="" typename="" _Arg="">
    ^
    In file included from /usr/include/c++/4.8/bits/stl_function.h:731:0,
    from /usr/include/c++/4.8/string:48,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/backward/binders.h:103:3: error: template with C linkage
    template<typename _Operation="">
    ^
    /usr/include/c++/4.8/backward/binders.h:129:3: error: template with C linkage
    template<typename _Operation,="" typename="" _Tp="">
    ^
    /usr/include/c++/4.8/backward/binders.h:138:3: error: template with C linkage
    template<typename _Operation="">
    ^
    /usr/include/c++/4.8/backward/binders.h:164:3: error: template with C linkage
    template<typename _Operation,="" typename="" _Tp="">
    ^
    In file included from /usr/include/c++/4.8/string:52:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/basic_string.h:111:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2363:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2379:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2390:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2400:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2416:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2484:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2490:3: error: template with C linkage
    template<typename _CharT="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2505:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2517:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2530:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2542:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2554:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2567:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2579:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2591:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2604:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2616:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2628:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2641:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2653:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2665:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2678:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2690:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2702:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2715:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2733:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2738:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2751:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2774:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2791:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2797:3: error: template specialization with C linkage
    template<>
    ^
    /usr/include/c++/4.8/bits/basic_string.h:2803:3: error: template specialization with C linkage
    template<>
    ^
    In file included from /usr/include/c++/4.8/string:53:0,
    from /usr/include/x86_64-linux-gnu/unicode/std_string.h:33,
    from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,
    from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,
    from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,
    from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,
    from /usr/include/libxml2/libxml/encoding.h:31,
    from /usr/include/libxml2/libxml/parser.h:810,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.h:60,
    from ../../vendor/wn_matrix/0.17/src/WnMatrix.c:40:
    /usr/include/c++/4.8/bits/basic_string.tcc:48:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:53:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:58:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:64:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:74:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:120:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:150:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:168:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:176:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:182:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:192:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:204:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:211:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:218:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:225:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:240:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:256:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:278:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:295:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:322:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:339:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:357:4: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:388:4: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:411:4: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:442:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:452:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:466:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:499:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:516:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:543:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:621:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:637:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:651:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:665:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:678:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:690:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:706:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:720:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:734:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:757:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:775:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:796:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:813:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:828:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:849:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:861:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:872:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:893:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:913:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:928:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:946:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:961:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:977:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:994:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    /usr/include/c++/4.8/bits/basic_string.tcc:1066:3: error: template with C linkage
    template<typename _CharT,="" typename="" _Traits,="" typename="" _Alloc="">
    ^
    ../../build/Makefile:243: recipe for target '../../obj/WnMatrix.o' failed
    make: *** [../../obj/WnMatrix.o] Error 1

     
    • Bradley S. Meyer

      Thanks for your post, and sorry for your trouble on this. We've seen this problem with libxml before. I wonder if you could try something for me. In a directory on your computer, could you type

      svn checkout svn://svn.code.sf.net/p/wnmatrix/code/branches/extern

      cd extern/examples

      make all

      Does that compile for you? If it does, then you could try an example code by typing, for instance,

      ./solve_by_arrow ../data_pub/matrix2.xml ../data_pub/vector2.xml

      If all that works, then edit Makefile to change the lines

       MATRIXSRCDIR = ../src/
       GC=gcc
       VALGRIND=yes
      

      to

       MATRIXSRCDIR = ../src/
       GC=g++
       VALGRIND=yes
      

      and type

      make all

      Does that compile? If either doesn't compile, please send me the errors. Thanks, and best wishes.

       
  • Anonymous

    Anonymous - 2016-07-19

    Sadly, it failed on the first make (errors below).

    Thank you for your help in this.


    make all
    mkdir -p ./tmp/
    gcc -Werror -Wall -pedantic -Wconversion -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -fshort-enums -fno-common -g -DWN_USE_MATRIX_LOOKUP -W -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -O0 -ansi -Dinline= -I../src/ xml2-config --cflags gsl-config --cflags -c -o ./tmp/WnMatrix.o ../src/WnMatrix.c
    ../src/WnMatrix.c: In function ‘WnMatrixnew’:
    ../src/WnMatrix.c:82:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    xmlStrPrintf( sx_tmp, WN_MATRIX_BUF_SIZE, WN_FORMAT, i+1 );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar *buf,
    ^
    ../src/WnMatrix.c: In function ‘WnMatrix
    removeElement’:
    ../src/WnMatrix.c:282:3: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    xmlStrPrintf( sx_row, WN_MATRIX_BUF_SIZE, WN_FORMAT, i_row );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar buf,
    ^
    ../src/WnMatrix.c:283:3: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    xmlStrPrintf( sx_col, WN_MATRIX_BUF_SIZE, WN_FORMAT, i_col );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar
    ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar
    buf,
    ^
    ../src/WnMatrix.c: In function ‘WnMatrixgetRow’:
    ../src/WnMatrix.c:1044:3: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar *buf,
    ^
    ../src/WnMatrix.c: In function ‘WnMatrix
    getColumn’:
    ../src/WnMatrix.c:1108:3: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar buf,
    ^
    ../src/WnMatrix.c: In function ‘WnMatrixCoomakeXmlDocument’:
    ../src/WnMatrix.c:1903:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar
    ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar
    buf,
    ^
    ../src/WnMatrix.c:1920:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar buf,
    ^
    ../src/WnMatrix.c:1937:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar
    ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar
    buf,
    ^
    ../src/WnMatrix.c: In function ‘WnMatrixCsrmakeXmlDocument’:
    ../src/WnMatrix.c:2095:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar buf,
    ^
    ../src/WnMatrix.c:2140:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar
    ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar
    buf,
    ^
    ../src/WnMatrix.c:2157:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar buf,
    ^
    ../src/WnMatrix.c: In function ‘WnMatrixYalemakeXmlDocument’:
    ../src/WnMatrix.c:2320:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar
    ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar
    buf,
    ^
    ../src/WnMatrix.c:2337:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar buf,
    ^
    ../src/WnMatrix.c: In function ‘WnMatrix__make_gsl_vector_xml_document’:
    ../src/WnMatrix.c:2899:5: error: pointer targets in passing argument 3 of ‘xmlStrPrintf’ differ in signedness [-Werror=pointer-sign]
    );
    ^
    In file included from /usr/include/libxml2/libxml/tree.h:18:0,
    from /usr/include/libxml2/libxml/parser.h:16,
    from /usr/include/libxml2/libxml/hash.h:29,
    from ../src/WnMatrix.h:51,
    from ../src/WnMatrix.c:40:
    /usr/include/libxml2/libxml/xmlstring.h:98:17: note: expected ‘const xmlChar
    ’ but argument is of type ‘const WnChar
    xmlStrPrintf (xmlChar
    buf,
    ^
    cc1: all warnings being treated as errors
    Makefile:117: recipe for target 'tmp/WnMatrix.o' failed
    make: *** [tmp/WnMatrix.o] Error 1

     
    • Bradley S. Meyer

      This is progress. Could you try typing the following

      cd extern

      svn up

      cd examples

      export NO_CHECK_XML_VERSION=1

      make all

      The export command is setting an environment variable--I'm assuming you are using a bash shell. Use the appropriate different command if you are using a different shell. Best wishes.

       
  • Anonymous

    Anonymous - 2016-07-20

    Dear Prof Meyer,

    This fix has worked for the solve_by_arrow program (output attached).
    Is there a corresponding fix for the run_single_zone code?

    Kind regards

     
    • Bradley S. Meyer

      Glad to hear it. Just to confirm, the code worked with both gcc and g++ right?

      I will propagate these changes into the underlying libraries in NucNet Tools over the course of the next week after some testing. I'll post here when done. Best wishes.

       
  • Anonymous

    Anonymous - 2016-07-21

    Yes, the code works with both gcc and g++. Thanks for your help.

     
  • Bradley S. Meyer

    I have updated the underlying librariers. One should be able to do the following:

    cd nucnet-tools-code/examples/network/

    ./examples_make

    If this does not work, try

    export WN_XML_CHAR=xmlChar

    and try compiling again with

    make clean

    make all_network

    If this does not work, try the other value for WN_XML_CHAR by typing

    export WN_XML_CHAR=char

    and then try compiling again. Let me know if this does not work. Best wishes.

     

    Last edit: Bradley S. Meyer 2016-07-24
  • Anonymous

    Anonymous - 2016-07-27

    Dear Prof Mayer,

    Unfortunately, none of these work (errors attached).

    Kind regards

     
    • Bradley S. Meyer

      Sorry about that. I see I still need to update libstatmech and libnuceq. I'll do that soon. In the meantime, could you try the following for me:

      cd nucnet-tools-code/vendor/libnucnet/0.28/examples/

      Edit the Makefile so that

       GC=g++
      

      Then make the examples:

      make all

      Does that work? Thanks, and best wishes.

       
      • Bradley S. Meyer

        I've updated libstatmech and libnuceq. Those updates should solve the problems you noted in wn_xml_char.txt. You should now be able to compile with

        cd nucnet-tools-code/examples/network

        ./examples_make

        Let me know if there are still problems. Best wishes.

         
  • Anonymous

    Anonymous - 2016-08-03

    Dear Prof Meyer,
    Sorry for the delay. The first suggestion works, however the second fails (error attached).
    Thank you for the continued help.

    Kind regards.

     
    • Bradley S. Meyer

      Sorry, I see that you are running linux, not mac os. What is happening is that the compiler is not finding the Boost program options library (or at least the appropriate version). You might try reinstalling Boost. If the code still does not compile, try locating libboost_program_options.so by typing

      locate libboost_program_options.so

      On one of my computers, I got

      /usr/lib/libboost_program_options.so
      /usr/lib/libboost_program_options.so.1.46.1
      

      Then export the BOOST_LIB_DIR environment variable (in my case)

      export BOOST_LIB_DIR = /usr/lib

      and then try compiling again. Alternatively, you can install Boost by hand, as described in this post. Let me know if this does not work. Best wishes.


      That's probably the mismatch between the compiler and the program options library. You'll probably want to see this post. Best wishes.

       

      Last edit: Bradley S. Meyer 2016-08-03
  • Anonymous

    Anonymous - 2016-08-10

    Dear Prof Meyer,

    Thanks for all your help, I've got everything compiled and working now.

    Kind regards,
    Sarah

     
    • Bradley S. Meyer

      Glad to hear it. Let me know if you have any further trouble. Best wishes.

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.