I've downloaded, built and added to the project the {fmt} 6.2.1 library on c++. I'm using Windows.
Problem is, the headers are recognized(Code:Blocks give me the auto-completion for them) but any function I try to use results in errors.
For example this code:
#include <iostream>
#include<fmt-6.1.2/include/fmt/core.h>
#include<fmt-6.1.2/include/fmt/format.h>
int main()
{
auto msg1 = fmt::format("The answer is {}", 42);
return 0;
}
produces this error
||=== Build: Debug in test libreria fmt (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `ZN3fmt2v68internal16is_integral_typeENS1_4typeE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\core.h|736|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal18is_arithmetic_typeENS1_4typeE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\core.h|741|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v612format_errorC1EPKc':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|693|undefined reference to `vtable for fmt::v6::format_error'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12count_digitsEy':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|751|undefined reference to `fmt::v6::internal::basic_data<void>::zero_or_powers_of_10_64'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|751|undefined reference to `fmt::v6::internal::basic_data<void>::zero_or_powers_of_10_64'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12count_digitsEj':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|809|undefined reference to `fmt::v6::internal::basic_data<void>::zero_or_powers_of_10_32'|
obj\Debug\main.o||In function `ZN3fmt2v68internal11to_unsignedIiEENSt13make_unsignedIT_E4typeES4_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\core.h|266|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZZN3fmt2v68internal19parse_format_stringILb0EcRNS0_14format_handlerINS0_13arg_formatterINS0_12buffer_rangeIcEEEEcNS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEvNS0_17basic_string_viewIT0_EEOT1_EN10pfs_writerclEPKcSN_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2510|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal19parse_format_stringILb0EcRNS0_14format_handlerINS0_13arg_formatterINS0_12buffer_rangeIcEEEEcNS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEvNS0_17basic_string_viewIT0_EEOT1_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2527|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2541|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2543|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12parse_arg_idIcNS1_10id_adapterIRNS0_14format_handlerINS0_13arg_formatterINS0_12buffer_rangeIcEEEEcNS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEcEEEEPKT_SK_SK_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2278|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v614format_handlerINS0_13arg_formatterINS0_12buffer_rangeIcEEEEcNS0_20basic_format_contextISt20back_insert_iteratorINS0_8internal6bufferIcEEEcEEE15on_format_specsEPKcSF_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|3133|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v616visit_format_argINS0_13arg_formatterINS0_12buffer_rangeIcEEEENS0_20basic_format_contextISt20back_insert_iteratorINS0_8internal6bufferIcEEEcEEEEDTclfp_Li0EEEOT_RKNS0_16basic_format_argIT0_EE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\core.h|1012|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal21parse_nonnegative_intIcRNS1_10id_adapterIRNS0_14format_handlerINS0_13arg_formatterINS0_12buffer_rangeIcEEEEcNS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEcEEEEiRPKT_SL_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1928|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal10id_adapterIRNS0_14format_handlerINS0_13arg_formatterINS0_12buffer_rangeIcEEEEcNS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEcE8on_errorEPKc':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2493|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v616visit_format_argIRNS0_8internal16custom_formatterINS0_20basic_format_contextISt20back_insert_iteratorINS2_6bufferIcEEEcEEEES9_EEDTclfp_Li0EEEOT_RKNS0_16basic_format_argIT0_EE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\core.h|1012|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v626basic_format_parse_contextIcNS0_8internal13error_handlerEE8on_errorEPKc':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\core.h|532|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal18arg_formatter_baseINS0_12buffer_rangeIcEENS1_13error_handlerEEclENS0_9monostateE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1836|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal11parse_alignIcRNS1_13specs_checkerINS1_13specs_handlerINS0_26basic_format_parse_contextIcNS1_13error_handlerEEENS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEEEPKT_SJ_SJ_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2342|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal11parse_widthIcRNS1_13specs_checkerINS1_13specs_handlerINS0_26basic_format_parse_contextIcNS1_13error_handlerEEENS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEEEPKT_SJ_SJ_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2382|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v620basic_format_contextISt20back_insert_iteratorINS0_8internal6bufferIcEEEcE8on_errorEPKc':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\core.h|1169|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal17handle_char_specsIcNS1_18arg_formatter_baseINS0_12buffer_rangeIcEENS1_13error_handlerEE17char_spec_handlerEEEvPKNS0_18basic_format_specsIT_EEOT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1280|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12basic_writerINS0_12buffer_rangeIcEEE5writeIfLi0EEEvT_NS0_18basic_format_specsIcEE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1694|undefined reference to `fmt::v6::internal::basic_data<void>::signs'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1703|undefined reference to `fmt::v6::internal::basic_data<void>::signs'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1704|undefined reference to `int fmt::v6::internal::snprintf_float<double>(double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1713|undefined reference to `int fmt::v6::internal::format_float<double>(double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12basic_writerINS0_12buffer_rangeIcEEE5writeIdLi0EEEvT_NS0_18basic_format_specsIcEE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1694|undefined reference to `fmt::v6::internal::basic_data<void>::signs'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1703|undefined reference to `fmt::v6::internal::basic_data<void>::signs'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1704|undefined reference to `int fmt::v6::internal::snprintf_float<double>(double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1713|undefined reference to `int fmt::v6::internal::format_float<double>(double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12basic_writerINS0_12buffer_rangeIcEEE5writeIeLi0EEEvT_NS0_18basic_format_specsIcEE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1694|undefined reference to `fmt::v6::internal::basic_data<void>::signs'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1703|undefined reference to `fmt::v6::internal::basic_data<void>::signs'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1704|undefined reference to `int fmt::v6::internal::snprintf_float<long double>(long double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)'|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1713|undefined reference to `int fmt::v6::internal::format_float<long double>(long double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal18arg_formatter_baseINS0_12buffer_rangeIcEENS1_13error_handlerEE5writeEPKc':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1823|undefined reference to `fmt::v6::format_error::~format_error()'|
obj\Debug\main.o||In function `ZN3fmt2v68internal24handle_cstring_type_specIcNS1_18arg_formatter_baseINS0_12buffer_rangeIcEENS1_13error_handlerEE20cstring_spec_handlerEEEvT_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1291|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal22check_string_type_specIcNS1_13error_handlerEEEvT_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1296|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal23check_pointer_type_specIcNS1_13error_handlerEEEvT_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1301|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal21parse_nonnegative_intIcRNS1_13specs_checkerINS1_13specs_handlerINS0_26basic_format_parse_contextIcNS1_13error_handlerEEENS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEEEiRPKT_SJ_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1928|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12parse_arg_idIcNS1_13width_adapterIRNS1_13specs_checkerINS1_13specs_handlerINS0_26basic_format_parse_contextIcNS1_13error_handlerEEENS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEcEEEEPKT_SL_SL_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2278|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12parse_arg_idIcNS1_17precision_adapterIRNS1_13specs_checkerINS1_13specs_handlerINS0_26basic_format_parse_contextIcNS1_13error_handlerEEENS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEcEEEEPKT_SL_SL_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|2278|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal21parse_float_type_specINS1_13error_handlerEcEENS1_11float_specsERKNS0_18basic_format_specsIT0_EEOT_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1268|undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal13decimal_pointIcEET_NS1_10locale_refE':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|831|undefined reference to `char fmt::v6::internal::decimal_point_impl<char>(fmt::v6::internal::locale_ref)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal21parse_nonnegative_intIcRNS1_13width_adapterIRNS1_13specs_checkerINS1_13specs_handlerINS0_26basic_format_parse_contextIcNS1_13error_handlerEEENS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEcEEEEiRPKT_SM_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1928|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal21parse_nonnegative_intIcRNS1_17precision_adapterIRNS1_13specs_checkerINS1_13specs_handlerINS0_26basic_format_parse_contextIcNS1_13error_handlerEEENS0_20basic_format_contextISt20back_insert_iteratorINS1_6bufferIcEEEcEEEEEEcEEEEiRPKT_SM_OT0_':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1928|undefined reference to `fmt::v6::internal::assert_fail(char const*, int, char const*)'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12basic_writerINS0_12buffer_rangeIcEEE10int_writerIiNS0_18basic_format_specsIcEEE8on_errorEv':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1590|undefined reference to `fmt::v6::format_error::~format_error()'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12basic_writerINS0_12buffer_rangeIcEEE10int_writerIjNS0_18basic_format_specsIcEEE8on_errorEv':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1590|undefined reference to `fmt::v6::format_error::~format_error()'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12basic_writerINS0_12buffer_rangeIcEEE10int_writerIxNS0_18basic_format_specsIcEEE8on_errorEv':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1590|undefined reference to `fmt::v6::format_error::~format_error()'|
obj\Debug\main.o||In function `ZN3fmt2v68internal12basic_writerINS0_12buffer_rangeIcEEE10int_writerIyNS0_18basic_format_specsIcEEE8on_errorEv':|
D:\CodeBlocks\MinGW\include\fmt-6.1.2\include\fmt\format.h|1590|undefined reference to `fmt::v6::format_error::~format_error()'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|
and the compiler points me to this section of core.h, in the second line
FMT_CONSTEXPR bool is_integral_type(type t) {
FMT_ASSERT(t != named_arg_type, "invalid argument type");
return t > none_type && t <= last_integer_type;
}
It is the first time for me to use a library so I could have mistaken something while adding it.
The procedure I've followed is to go on project->build options->linker settings and there I added the .lib files.
Thank you.
You should link with the fmt library. For example, if you are using CMake it can be done with target_link_libraries:
target_link_libraries(<target> fmt)
Related
I'm having problems compiling release fhDOOM (https://github.com/eXistence/fhDOOM) on Ubuntu 18.04 with g++ 7.4.
I have tried installing g++ 4.9 but the compiler doesn't use it.
CMakeFiles/fhDOOM.dir/renderer/draw_glsl.cpp.o: In function
'RB_GLSL_DrawInteractions()': draw_glsl.cpp:(.text+0x2867):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/cm/CollisionModel_load.cpp.o: In function 'idCollisionModelManagerLocal::ConvertPatch(cm_model_s*, idMapPatch const*, int)': CollisionModel_load.cpp:(.text+0xa2d0):
undefined reference to '__cxa_throw_bad_array_new_length' CollisionModel_load.cpp:(.text+0xa2d8):
undefined reference to '__cxa_throw_bad_array_new_length' CollisionModel_load.cpp:(.text+0xa2e0):
undefined reference to '__cxa_throw_bad_array_new_length' CollisionModel_load.cpp:(.text+0xa2e8):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/framework/async/ServerScan.cpp.o:ServerScan.cpp:(.text+0x1b20): more undefined references to '__cxa_throw_bad_array_new_length' follow
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o: In function 'idRenderModelStatic::ConvertOBJToModelSurfaces(objModel_t const*)': Model.cpp:(.text+0x921f):
undefined reference to 'std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned int) const' Model.cpp:(.text+0xb305):
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb36f):
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb37a):
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb3f3):
undefined reference to '__cxa_throw_bad_array_new_length' Model.cpp:(.text+0xb3fe):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o:Model.cpp:(.text+0xb409): more undefined references to '__cxa_throw_bad_array_new_length' follow
CMakeFiles/fhDOOM.dir/renderer/Model.cpp.o: In function 'std::_Hashtable<objVertex_t, std::pair<objVertex_t const, int>, std::allocator<std::pair<objVertex_t const, int> >, std::__detail::_Select1st, std::equal_to<objVertex_t>, std::hash<objVertex_t>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_insert_unique_node(unsigned int, unsigned int, std::__detail::_Hash_node<std::pair<objVertex_t const, int>, true>*)': Model.cpp:(.text._ZNSt10_HashtableI11objVertex_tSt4pairIKS0_iESaIS3_ENSt8__detail10_Select1stESt8equal_toIS0_ESt4hashIS0_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNS5_10_Hash_nodeIS3_Lb1EEE[_ZNSt10_HashtableI11objVertex_tSt4pairIKS0_iESaIS3_ENSt8__detail10_Select1stESt8equal_toIS0_ESt4hashIS0_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNS5_10_Hash_nodeIS3_Lb1EEE]+0x4b):
undefined reference to 'std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned int, unsigned int, unsigned int) const'
CMakeFiles/fhDOOM.dir/renderer/ModelManager.cpp.o: In function 'idRenderModelManagerLocal::PrintMemInfo(MemInfo_t*)': ModelManager.cpp:(.text+0xe16):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/renderer/ModelManager.cpp.o: In function 'idRenderModelManagerLocal::AddModel(idRenderModel*)': ModelManager.cpp:(.text+0x15ba):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/renderer/RenderSystem.cpp.o: In function 'idRenderSystemLocal::AllocRenderWorld()': RenderSystem.cpp:(.text+0x2a61):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function '.L58': RenderSystem_init.cpp:(.text+0x494):
undefined reference to 'std::__throw_system_error(int)'
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function '.L573': RenderSystem_init.cpp:(.text+0x32de):
undefined reference to 'std::__throw_system_error(int)'
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function 'RB_PrintDebugOutput()': RenderSystem_init.cpp:(.text+0x398d):
undefined reference to 'std::__throw_system_error(int)'
CMakeFiles/fhDOOM.dir/renderer/RenderSystem_init.cpp.o: In function '.L806': RenderSystem_init.cpp:(.text+0x4e16):
undefined reference to 'std::__throw_system_error(int)'
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o: In function 'fhShadowMapAllocator::fhShadowMapAllocator()': ShadowMapAllocator.cpp:(.text+0x4d6):
undefined reference to '__cxa_throw_bad_array_new_length' ShadowMapAllocator.cpp:(.text+0x503):
undefined reference to '__cxa_throw_bad_array_new_length' ShadowMapAllocator.cpp:(.text+0x50b):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o: In function 'fhShadowMapAllocator::FreeAll()': ShadowMapAllocator.cpp:(.text+0x79c):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o: In function 'fhShadowMapAllocator::Make(int)': ShadowMapAllocator.cpp:(.text+0xb28):
undefined reference to '__cxa_throw_bad_array_new_length'
CMakeFiles/fhDOOM.dir/renderer/ShadowMapAllocator.cpp.o:ShadowMapAllocator.cpp:(.text+0xf89): more undefined references to '__cxa_throw_bad_array_new_length' follow
collect2: error: ld returned 1 exit status
neo/CMakeFiles/fhDOOM.dir/build.make:4676: recipe for target 'bin/fhDOOM' failed
make[2]: *** [bin/fhDOOM] Error 1
CMakeFiles/Makefile2:261: recipe for target 'neo/CMakeFiles/fhDOOM.dir/all' failed
make[1]: *** [neo/CMakeFiles/fhDOOM.dir/all] Error 2
Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
It looks like you are missing symbols. Can you try rebuilding the Makefile(s) itself? Is there any configure script around by chance?
This is a project that was worked on a while ago. It used androind-ndk-r7b to compile and android-2.3.7 to test the code. I was given the task to port it to the latest android or atleast 4.4. The source code is one year old, so the last compiler it supports is gcc-4.6 and g++-4.6. Therefore, I used android-ndk-r10d, which is the last revision of android ndk to support the 4.6 compiler. Now I compile some external android libraries, which are compiled without any issue. Then, I compile the source code of my application using ndk. The ndk is supposed to generate a shared library that can be used in my app. The shared library links to the external android libraries which are already compiler. So when the ndk-build script gets to the last step of generating the shared library file, I get this weird error. I have looked alot on the internet and could not find anything related to it. Please, need expert advice.
The error is:
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: format 'default' not supported; treating as elf (supported formats: elf, binary)
If you need more info on the problem, let me know. I'll upload more info.
Update:
Sorry, I am a newbie to stack overflow. Thanks for keeping up with me. So I get these and many other errors. I think these are standard functions that shouldn't be undefined.
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(atexit_arm.o): in function __aeabi_atexit:/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/atexit_arm.cc:35: error: undefined reference to '__cxa_atexit'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_globals.o): in function __eh_globals_init::~__eh_globals_init():/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.6/include/arm-linux-androideabi/bits/gthr-default.h:727: error: undefined reference to 'pthread_key_delete'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_globals.o): in function __cxa_get_globals_fast:/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.6/include/arm-linux-androideabi/bits/gthr-default.h:733: error: undefined reference to 'pthread_getspecific'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_globals.o): in function __cxa_get_globals:/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.6/include/arm-linux-androideabi/bits/gthr-default.h:733: error: undefined reference to 'pthread_getspecific'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_globals.o): in function __cxa_get_globals:/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.6/include/arm-linux-androideabi/bits/gthr-default.h:739: error: undefined reference to 'pthread_setspecific'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_globals.o): in function _GLOBAL__sub_I_eh_globals.cc:/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.6/include/arm-linux-androideabi/bits/gthr-default.h:721: error: undefined reference to 'pthread_key_create'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_personality.o): in function read_encoded_value_with_base(unsigned char, unsigned int, unsigned char const*, unsigned int*):/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/../gcc/unwind-pe.h:257: error: undefined reference to 'abort'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_personality.o): in function base_of_encoded_value(unsigned char, _Unwind_Context*):/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/../gcc/unwind-pe.h:120: error: undefined reference to 'abort'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_personality.o): in function __gxx_personality_v0:/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/eh_personality.cc:402: error: undefined reference to 'abort'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(eh_terminate.o): in function __cxxabiv1::__terminate(void ()()):/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/eh_terminate.cc:41: error: undefined reference to 'abort'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(guard.o): in function __cxa_guard_acquire:/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/guard.cc:273: error: undefined reference to 'syscall'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(guard.o): in function __cxa_guard_abort:/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/guard.cc:332: error: undefined reference to 'syscall'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(guard.o): in function __cxa_guard_release:/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/guard.cc:372: error: undefined reference to 'syscall'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(pure.o): in function __cxa_pure_virtual:/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/pure.cc:49: error: undefined reference to 'write'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(locale_init.o): in function std::locale::_S_initialize():/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.6/include/arm-linux-androideabi/bits/gthr-default.h:713: error: undefined reference to 'pthread_once'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(locale_init.o): in function std::locale::global(std::locale const&):/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/src/locale_init.cc:246: error: undefined reference to 'setlocale'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(codecvt_members.o): in function std::codecvt::do_out(mbstate_t&, wchar_t const, wchar_t const*, wchar_t const*&, char*, char*, char*&) const:codecvt_members.cc:81: error: undefined reference to 'wcrtomb'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(codecvt_members.o): in function std::codecvt::do_out(mbstate_t&, wchar_t const*, wchar_t const*, wchar_t const*&, char*, char*, char*&) const:codecvt_members.cc:66: error: undefined reference to 'wcrtomb'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(codecvt_members.o): in function std::codecvt::do_in(mbstate_t&, char const*, char const*, char const*&, wchar_t*, wchar_t*, wchar_t*&) const:codecvt_members.cc:126: error: undefined reference to 'mbrtowc'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(codecvt_members.o): in function std::codecvt::do_length(mbstate_t&, char const*, char const*, unsigned int) const:codecvt_members.cc:191: error: undefined reference to 'mbrtowc'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(collate_members.o): in function std::collate::_M_compare(char const*, char const*) const:collate_members.cc:46: error: undefined reference to 'strcoll'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(collate_members.o): in function std::collate::_M_transform(char*, char const*, unsigned int) const:collate_members.cc:54: error: undefined reference to 'strxfrm'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(collate_members.o): in function std::collate::_M_compare(wchar_t const*, wchar_t const*) const:collate_members.cc:62: error: undefined reference to 'wcscoll'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(collate_members.o): in function std::collate::_M_transform(wchar_t*, wchar_t const*, unsigned int) const:collate_members.cc:70: error: undefined reference to 'wcsxfrm'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::_M_convert_to_wmask(char) const:ctype_members.cc:91: error: undefined reference to 'wctype'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::_M_convert_to_wmask(char) const:ctype_members.cc:94: error: undefined reference to 'wctype'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::_M_convert_to_wmask(char) const:ctype_members.cc:76: error: undefined reference to 'wctype'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::_M_convert_to_wmask(char) const:ctype_members.cc:67: error: undefined reference to 'wctype'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_toupper(wchar_t) const:ctype_members.cc:104: error: undefined reference to 'towupper'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_toupper(wchar_t*, wchar_t const*) const:ctype_members.cc:111: error: undefined reference to 'towupper'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_tolower(wchar_t) const:ctype_members.cc:119: error: undefined reference to 'towlower'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_tolower(wchar_t*, wchar_t const*) const:ctype_members.cc:126: error: undefined reference to 'towlower'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_is(char, wchar_t) const:ctype_members.cc:142: error: undefined reference to 'iswctype'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_is(wchar_t const*, wchar_t const*, char*) const:ctype_members.cc:161: error: undefined reference to 'iswctype'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_narrow(wchar_t, char) const:ctype_members.cc:210: error: undefined reference to 'wctob'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_narrow(wchar_t const*, wchar_t const*, char, char*) const:ctype_members.cc:235: error: undefined reference to 'wctob'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::do_narrow(wchar_t const*, wchar_t const*, char, char*) const:ctype_members.cc:226: error: undefined reference to 'wctob'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::_M_initialize_ctype():ctype_members.cc:249: error: undefined reference to 'wctob'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(ctype_members.o): in function std::ctype::_M_initialize_ctype():ctype_members.cc:261: error: undefined reference to 'btowc'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(time_members.o): in function std::__timepunct::_M_put(char*, unsigned int, char const*, tm const*) const:time_members.cc:56: error: undefined reference to 'strftime'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(time_members.o): in function std::__timepunct::_M_put(wchar_t*, unsigned int, wchar_t const*, tm const*) const:time_members.cc:145: error: undefined reference to 'wcsftime'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(time_members.o): in function std::__timepunct::_M_put(wchar_t*, unsigned int, wchar_t const*, tm const*) const:time_members.cc:145: error: undefined reference to 'wcsftime'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(vterminate.o): in function __gnu_cxx::__verbose_terminate_handler():/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/vterminate.cc:71: error: undefined reference to 'fputs'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/thumb/libgnustl_static.a(vterminate.o): in function __gnu_cxx::__verbose_terminate_handler():/s/ndk-toolchain/src/gcc/gcc-4.6/libstdc++-v3/libsupc++/vterminate.cc:87: error: undefined reference to 'fputc'
/home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/zeeshan/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/thumb/libgcc.a(_dvmd_lnx.o): in function __aeabi_idiv0:/s/ndk-toolchain/src/build/../gcc/gcc-4.6/libgcc/../gcc/config/arm/lib1funcs.asm:1270: error: undefined reference to 'raise'
I am using MinGW-w64 to link a torrent downloader but it doesn't work.
Does someone have an idea about what could be the problem?
g++.exe -o ./Debug/athorrentd #"athorrentd.txt" -lws2_32 -lwsock32 -lboost_program_options-mgw49-mt-1_58 -lboost_filesystem-mgw49-mt-1_58 -lboost_thread-mgw49-mt-1_58 -ljson -lboost_system-mgw49-mt-1_58 -lboost_locale-mgw49-mt-1_58 -ltorrent-rasterbar
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `boost::asio::detail::winsock_init_base::startup(boost::asio::detail::winsock_init_base::data&, unsigned char, unsigned char)':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/winsock_init.ipp:39: undefined reference to `__imp_WSAStartup'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `clear_last_error':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:69: undefined reference to `__imp_WSASetLastError'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `call_accept<int>':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:96: undefined reference to `__imp_accept'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `error_wrapper<long long unsigned int>':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:82: undefined reference to `__imp_WSAGetLastError'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `call_accept<int>':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:96: undefined reference to `__imp_accept'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `clear_last_error':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:69: undefined reference to `__imp_WSASetLastError'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `call_bind<int>':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:276: undefined reference to `__imp_bind'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `error_wrapper<int>':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:82: undefined reference to `__imp_WSAGetLastError'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `clear_last_error':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:69: undefined reference to `__imp_WSASetLastError'
D:/dev/mingw/64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libtorrent-rasterbar.a(asio.o): In function `boost::asio::detail::socket_ops::set_user_non_blocking(unsigned long long, unsigned char&, bool, boost::system::error_code&)':
d:/dev/mingw/64/mingw64/x86_64-w64-mingw32/include/boost/asio/detail/impl/socket_ops.ipp:373: undefined reference to `__imp_ioctlsocket'
...
I'm trying to create a haar classifier following this tutorial: http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html
I'm at the part where you compile opencv C++ files, with mergevec.cpp, about 1/4th of the way down. I entered
g++ -L C:\opencv\build\x64\vc11\lib -IC:\opencv\build\include\opencv -IC:\opencv\build\include\opencv -IC:\opencv\build\include\opencv2 -I.-o mergevec mergevec.cpp\
cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp\
cvhaartraining.cpp\
-lopencv_core2411 -lopencv_calib3d2411 -lopencv_imgproc2411 -lopencv_highgui2411 -lopencv_objdetect2411
(Pkg-config created a lot of problems for me, so I specified the include and lib directories directly in the command). I got the following output:
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x3f67): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x3f80): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x3f8f): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4106): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x411f): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x412e): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x42d2): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x42eb): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x42fa): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x447a): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4493): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x44a2): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4634): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x464d): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x465c): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x47e1): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x47fa): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4809): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x49ee): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4a07): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4a16): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4b9b): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4bb4): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x4bc3): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x5168): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x52bc): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x53db): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x54fa): undefined reference to `cv::Exception::~Exception()'
C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o:cvboost.cpp:(.text+0x5619): more undefined references to `cv::Exception::~Exception()' follow
...
c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\nancy\AppData\Local\Temp\cco1Zm1B.o: bad reloc address 0x0 in section `.data'
collect2: ld returned 1 exit status
I'm not sure what is causing this error. I'm using the command prompt on a windows 7 machine, and I run it from the directory C:\opencv\sources\apps\haartraining
A copy of my cvboost.cpp, which is in opencv/sources/apps/haartraining can be found at https://github.com/matitone/OpenCV_Example. I believe this is the file causing the error.
Please let me know if more information would be helpful Thank you.
I tried several times, it's probably fairly easy to solve but I can't see the solution.
I tried to compile SAXPrint example from xerces site ( the link to four *.cpp and *.hpp files is here [sorry for using skydrive, my FTP died]) using g++ in linux (got xerces-dev package) and windows (MinGW with libraries) and I couldn't succeed Is there any chance you could lend me a hand? I tried command:
g++ SAXPrint.hpp SAXPrint.cpp SAXPrintHandlers.hpp SAXPrintHandlers.cpp -o output
and it gave me:
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x0): multiple definition of `SAXPrintHandlers::SAXPrint
Handlers(char const*, xercesc_3_1::XMLFormatter::UnRepFlags)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x0): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x0): multiple definition of `SAXPrintHandlers::SAXPrint
Handlers(char const*, xercesc_3_1::XMLFormatter::UnRepFlags)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x0): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x11e): multiple definition of `SAXPrintHandlers::~SAXPr
intHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x11e): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x11e): multiple definition of `SAXPrintHandlers::~SAXPr
intHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x11e): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x1c9): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x1c9): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x1d3): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x1d3): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x1dd): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x1dd): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x1e7): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x1e7): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x1f2): multiple definition of `SAXPrintHandlers::~SAXPr
intHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x1f2): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x212): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x212): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x219): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x219): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x220): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x220): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x227): multiple definition of `non-virtual thunk to SAX
PrintHandlers::~SAXPrintHandlers()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x227): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x22e): multiple definition of `SAXPrintHandlers::writeC
hars(unsigned char const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x22e): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x234): multiple definition of `SAXPrintHandlers::writeC
hars(unsigned char const*, unsigned long, xercesc_3_1::XMLFormatter*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x234): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x262): multiple definition of `non-virtual thunk to SAX
PrintHandlers::writeChars(unsigned char const*, unsigned long, xercesc_3_1::XMLFormatter*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x262): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x26a): multiple definition of `SAXPrintHandlers::error(
xercesc_3_1::SAXParseException const&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x26a): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x39a): multiple definition of `non-virtual thunk to SAX
PrintHandlers::error(xercesc_3_1::SAXParseException const&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x39a): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x3a4): multiple definition of `SAXPrintHandlers::fatalE
rror(xercesc_3_1::SAXParseException const&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x3a4): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x4d4): multiple definition of `non-virtual thunk to SAX
PrintHandlers::fatalError(xercesc_3_1::SAXParseException const&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x4d4): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x4de): multiple definition of `SAXPrintHandlers::warnin
g(xercesc_3_1::SAXParseException const&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x4de): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x60e): multiple definition of `non-virtual thunk to SAX
PrintHandlers::warning(xercesc_3_1::SAXParseException const&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x60e): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x618): multiple definition of `SAXPrintHandlers::unpars
edEntityDecl(unsigned short const*, unsigned short const*, unsigned short const*, unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x618): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x61d): multiple definition of `non-virtual thunk to SAX
PrintHandlers::unparsedEntityDecl(unsigned short const*, unsigned short const*, unsigned short const*, unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x61d): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x624): multiple definition of `SAXPrintHandlers::notati
onDecl(unsigned short const*, unsigned short const*, unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x624): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x629): multiple definition of `non-virtual thunk to SAX
PrintHandlers::notationDecl(unsigned short const*, unsigned short const*, unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x629): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x630): multiple definition of `SAXPrintHandlers::charac
ters(unsigned short const*, unsigned long)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x630): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x666): multiple definition of `non-virtual thunk to SAX
PrintHandlers::characters(unsigned short const*, unsigned long)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x666): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x66e): multiple definition of `SAXPrintHandlers::endDoc
ument()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x66e): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x673): multiple definition of `non-virtual thunk to SAX
PrintHandlers::endDocument()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x673): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x67a): multiple definition of `SAXPrintHandlers::endEle
ment(unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x67a): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x6cd): multiple definition of `non-virtual thunk to SAX
PrintHandlers::endElement(unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x6cd): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x6d4): multiple definition of `SAXPrintHandlers::ignora
bleWhitespace(unsigned short const*, unsigned long)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x6d4): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x70a): multiple definition of `non-virtual thunk to SAX
PrintHandlers::ignorableWhitespace(unsigned short const*, unsigned long)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x70a): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x712): multiple definition of `SAXPrintHandlers::proces
singInstruction(unsigned short const*, unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x712): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x7aa): multiple definition of `non-virtual thunk to SAX
PrintHandlers::processingInstruction(unsigned short const*, unsigned short const*)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x7aa): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x7b4): multiple definition of `SAXPrintHandlers::startD
ocument()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x7b4): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x7b9): multiple definition of `non-virtual thunk to SAX
PrintHandlers::startDocument()'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x7b9): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x7c0): multiple definition of `SAXPrintHandlers::startE
lement(unsigned short const*, xercesc_3_1::AttributeList&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x7c0): first defined here
C:\Users\Mati\AppData\Local\Temp\cctzntQK.o:SAXPrintHandlers.cpp:(.text+0x925): multiple definition of `non-virtual thunk to SAX
PrintHandlers::startElement(unsigned short const*, xercesc_3_1::AttributeList&)'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x925): first defined here
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x44): undefined reference to `_imp___ZN11xercesc_3_16XMLUni22fg
XercescDefaultLocaleE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x64): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatfo
rmUtils10InitializeEPKcS2_PNS_12PanicHandlerEPNS_13MemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x76): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatfo
rmUtils9TerminateEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0xd8): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatfo
rmUtils9TerminateEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x211): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatf
ormUtils9TerminateEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x4b2): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatf
ormUtils9TerminateEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x543): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatf
ormUtils9TerminateEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x57a): undefined reference to `_imp___ZN11xercesc_3_17XMemorynw
Ej'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x583): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatf
ormUtils15fgMemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x5a3): undefined reference to `_imp___ZN11xercesc_3_19SAXParser
C1EPNS_12XMLValidatorEPNS_13MemoryManagerEPNS_14XMLGrammarPoolE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x5c4): undefined reference to `_imp___ZN11xercesc_3_19SAXParser
19setValidationSchemeENS0_10ValSchemesE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x5e1): undefined reference to `_imp___ZN11xercesc_3_19SAXParser
15setDoNamespacesEb'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x5fe): undefined reference to `_imp___ZN11xercesc_3_19SAXParser
11setDoSchemaEb'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x617): undefined reference to `_imp___ZN11xercesc_3_19SAXParser
24setHandleMultipleImportsEb'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x634): undefined reference to `_imp___ZN11xercesc_3_19SAXParser
31setValidationSchemaFullCheckingEb'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x6dc): undefined reference to `_imp___ZNK11xercesc_3_19SAXParse
r13getErrorCountEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x700): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatf
ormUtils9TerminateEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x734): undefined reference to `_imp___ZN11xercesc_3_116XMLPlatf
ormUtils9TerminateEv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text+0x819): undefined reference to `_imp___ZN11xercesc_3_17XMemorydl
EPv'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text$_ZN4StrXC1EPKt[StrX::StrX(unsigned short const*)]+0x7): undefine
d reference to `_imp___ZN11xercesc_3_116XMLPlatformUtils15fgMemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text$_ZN4StrXC1EPKt[StrX::StrX(unsigned short const*)]+0x18): undefin
ed reference to `_imp___ZN11xercesc_3_19XMLString9transcodeEPKtPNS_13MemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text$_ZN4StrXD1Ev[StrX::~StrX()]+0x7): undefined reference to `_imp__
_ZN11xercesc_3_116XMLPlatformUtils15fgMemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccJzlNBi.o:SAXPrint.cpp:(.text$_ZN4StrXD1Ev[StrX::~StrX()]+0x18): undefined reference to `_imp_
__ZN11xercesc_3_19XMLString7releaseEPPcPNS_13MemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x52): undefined reference to `_imp___ZN11xercesc_3_116X
MLPlatformUtils15fgMemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x8e): undefined reference to `_imp___ZN11xercesc_3_112X
MLFormatterC1EPKcS2_PNS_15XMLFormatTargetENS0_11EscapeFlagsENS0_10UnRepFlagsEPNS_13MemoryManagerE'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0xb6): undefined reference to `_imp___ZN11xercesc_3_112X
MLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0xc4): undefined reference to `_imp___ZN11xercesc_3_112X
MLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0xd6): undefined reference to `_imp___ZN11xercesc_3_112X
MLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0xea): undefined reference to `_imp___ZN11xercesc_3_112X
MLFormatterD1Ev'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x160): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterD1Ev'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x192): undefined reference to `_imp___ZN11xercesc_3_17X
MemorydlEPv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x20a): undefined reference to `_imp___ZN11xercesc_3_17X
MemorydlEPv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x29a): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException15getColumnNumberEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x2a9): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException13getLineNumberEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x2b8): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException11getSystemIdEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x3d4): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException15getColumnNumberEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x3e3): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException13getLineNumberEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x3f2): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException11getSystemIdEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x50e): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException15getColumnNumberEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x51d): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException13getLineNumberEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x52c): undefined reference to `_imp___ZNK11xercesc_3_11
7SAXParseException11getSystemIdEv'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x65e): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatter9formatBufEPKtmNS0_11EscapeFlagsENS0_10UnRepFlagsE'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x6a2): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x6b3): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x6c5): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x702): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatter9formatBufEPKtmNS0_11EscapeFlagsENS0_10UnRepFlagsE'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x73a): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x74b): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x769): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x77a): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x7a2): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x7ea): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x7fb): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x87a): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x888): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x89a): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x8ac): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x8ca): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEPKt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x8ec): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text+0x918): undefined reference to `_imp___ZN11xercesc_3_112
XMLFormatterlsEt'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text$_ZN11xercesc_3_115DocumentHandlerC2Ev[xercesc_3_1::Docum
entHandler::DocumentHandler()]+0x4): undefined reference to `_imp___ZTVN11xercesc_3_115DocumentHandlerE'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text$_ZN11xercesc_3_115DocumentHandlerD2Ev[xercesc_3_1::Docum
entHandler::~DocumentHandler()]+0x7): undefined reference to `_imp___ZTVN11xercesc_3_115DocumentHandlerE'
C:\Users\Mati\AppData\Local\Temp\ccF7gVrk.o:SAXPrintHandlers.cpp:(.text$_ZN11xercesc_3_115DocumentHandlerD1Ev[xercesc_3_1::Docum
entHandler::~DocumentHandler()]+0x7): undefined reference to `_imp___ZTVN11xercesc_3_115DocumentHandlerE'
etc.
Is there any chance to solve it quick? Thanks anyway!
don't put the .hpp files in the compiler command line. they are included automatically by the .cpp files.
g++ SAXPrint.cpp SAXPrintHandlers.cpp -o output
I solved my problem, it was simplier than I had imagined. All you need to do is use flag:
-lxerces-c
It worked out great, but thanks for trying, guys! I appreciate it :)