You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Steve Huston (JIRA)" <qp...@incubator.apache.org> on 2009/11/20 01:54:39 UTC

[jira] Created: (QPID-2212) C++ messaging spout and drain examples don't build on Windows

C++ messaging spout and drain examples don't build on Windows
-------------------------------------------------------------

                 Key: QPID-2212
                 URL: https://issues.apache.org/jira/browse/QPID-2212
             Project: Qpid
          Issue Type: Bug
          Components: Qpid Examples
    Affects Versions: 0.6
         Environment: Windows
            Reporter: Steve Huston
            Assignee: Gordon Sim


The new qpid/cpp/examples/messaging spout and drain examples get link failures for boost::program_options entrypoints.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2212) C++ messaging spout and drain examples don't build on Windows

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780617#action_12780617 ] 

Gordon Sim commented on QPID-2212:
----------------------------------

Ok, I've disabled those two executables under cmake until I figure out how to fix this.

> C++ messaging spout and drain examples don't build on Windows
> -------------------------------------------------------------
>
>                 Key: QPID-2212
>                 URL: https://issues.apache.org/jira/browse/QPID-2212
>             Project: Qpid
>          Issue Type: Bug
>          Components: Qpid Examples
>    Affects Versions: 0.6
>         Environment: Windows
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>
> The new qpid/cpp/examples/messaging spout and drain examples get link failures for boost::program_options entrypoints.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2212) C++ messaging spout and drain examples don't build on Windows

Posted by "Steve Huston (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780606#action_12780606 ] 

Steve Huston commented on QPID-2212:
------------------------------------

It's still the same:
Linking...
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class boost::program_options::typed_value * __cdecl boost::program_options::bool_switch(bool *)" (__imp_?bool_switch@program_options@boost@@YAPAV?$typed_value@_ND@12@PA_N@Z) referenced in function "class boost::program_options::value_semantic * __cdecl qpid::optValue(bool &)" (?optValue@qpid@@YAPAVvalue_semantic@program_options@boost@@AA_N@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class boost::program_options::options_description_easy_init __thiscall boost::program_options::options_description::add_options(void)" (__imp_?add_options@options_description@program_options@boost@@QAE?AVoptions_description_easy_init@23@XZ) referenced in function "public: class boost::program_options::options_description_easy_init __thiscall qpid::Options::addOptions(void)" (?addOptions@Options@qpid@@QAE?AVoptions_description_easy_init@program_options@boost@@XZ)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::program_options::options_description::~options_description(void)" (__imp_??1options_description@program_options@boost@@QAE@XZ) referenced in function "public: __thiscall qpid::Options::~Options(void)" (??1Options@qpid@@QAE@XZ)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream > & __cdecl boost::program_options::operator<<(class std::basic_ostream > &,class boost::program_options::options_description const &)" (__imp_??6program_options@boost@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@ABVoptions_description@01@@Z) referenced in function "public: bool __thiscall Options::parse(int,char * *)" (?parse@Options@@QAE_NHPAPAD@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall boost::program_options::value_semantic_codecvt_helper::~value_semantic_codecvt_helper(void)" (__imp_??1?$value_semantic_codecvt_helper@D@program_options@boost@@UAE@XZ) referenced in function __unwindfunclet$??1?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UAE@XZ$0
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const boost::program_options::value_semantic::`vftable'" (__imp_??_7value_semantic@program_options@boost@@6B@) referenced in function "public: virtual __thiscall boost::program_options::typed_value,class std::allocator >,char>::~typed_value,class std::allocator >,char>(void)" (??1?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UAE@XZ)
spout.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall boost::program_options::value_semantic_codecvt_helper::parse(class boost::any &,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > const &,bool)const " (?parse@?$value_semantic_codecvt_helper@D@program_options@boost@@EBEXAAVany@3@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@_N@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_string,class std::allocator > boost::program_options::arg" (__imp_?arg@program_options@boost@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) referenced in function "public: virtual class std::basic_string,class std::allocator > __thiscall boost::program_options::typed_value,class std::allocator >,char>::name(void)const " (?name@?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::program_options::validate(class boost::any &,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > const &,class std::basic_string,class std::allocator > *,int)" (__imp_?validate@program_options@boost@@YAXAAVany@2@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@H@Z) referenced in function "public: virtual void __thiscall boost::program_options::typed_value,class std::allocator >,char>::xparse(class boost::any &,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > const &)const " (?xparse@?$typed_value@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@program_options@boost@@UBEXAAVany@3@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall boost::program_options::invalid_option_value::~invalid_option_value(void)" (__imp_??1invalid_option_value@program_options@boost@@UAE@XZ) referenced in function __unwindfunclet$??0?$error_info_injector@Vinvalid_option_value@program_options@boost@@@exception_detail@boost@@QAE@ABU012@@Z$0
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::program_options::invalid_option_value::invalid_option_value(class boost::program_options::invalid_option_value const &)" (__imp_??0invalid_option_value@program_options@boost@@QAE@ABV012@@Z) referenced in function "public: __thiscall boost::exception_detail::error_info_injector::error_info_injector(struct boost::exception_detail::error_info_injector const &)" (??0?$error_info_injector@Vinvalid_option_value@program_options@boost@@@exception_detail@boost@@QAE@ABU012@@Z)
spout.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall boost::program_options::validation_error::what(void)const " (?what@validation_error@program_options@boost@@UBEPBDXZ)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall boost::program_options::validation_error::~validation_error(void)" (__imp_??1validation_error@program_options@boost@@UAE@XZ) referenced in function __unwindfunclet$??0?$error_info_injector@Vvalidation_error@program_options@boost@@@exception_detail@boost@@QAE@ABU012@@Z$0
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::program_options::validation_error::validation_error(class boost::program_options::validation_error const &)" (__imp_??0validation_error@program_options@boost@@QAE@ABV012@@Z) referenced in function "public: __thiscall boost::exception_detail::error_info_injector::error_info_injector(struct boost::exception_detail::error_info_injector const &)" (??0?$error_info_injector@Vvalidation_error@program_options@boost@@@exception_detail@boost@@QAE@ABU012@@Z)
spout.obj : error LNK2001: unresolved external symbol "public: __thiscall boost::program_options::invalid_option_value::invalid_option_value(class boost::program_options::invalid_option_value const &)" (??0invalid_option_value@program_options@boost@@QAE@ABV012@@Z)
spout.obj : error LNK2001: unresolved external symbol "public: __thiscall boost::program_options::validation_error::validation_error(class boost::program_options::validation_error const &)" (??0validation_error@program_options@boost@@QAE@ABV012@@Z)
spout.obj : error LNK2001: unresolved external symbol "public: __thiscall boost::program_options::error::error(class boost::program_options::error const &)" (??0error@program_options@boost@@QAE@ABV012@@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::program_options::validation_error::validation_error(class std::basic_string,class std::allocator > const &)" (__imp_??0validation_error@program_options@boost@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "class std::basic_string,class std::allocator > const & __cdecl boost::program_options::validators::get_single_string(class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > const &,bool)" (??$get_single_string@D@validators@program_options@boost@@YAABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@4@_N@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::program_options::invalid_option_value::invalid_option_value(class std::basic_string,class std::allocator > const &)" (__imp_??0invalid_option_value@program_options@boost@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function __catch$??$validate@_JD@program_options@boost@@YAXAAVany@1@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PA_JJ@Z$0
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::program_options::validators::check_first_occurrence(class boost::any const &)" (__imp_?check_first_occurrence@validators@program_options@boost@@YAXABVany@3@@Z) referenced in function "void __cdecl boost::program_options::validate<__int64,char>(class boost::any &,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > const &,__int64 *,long)" (??$validate@_JD@program_options@boost@@YAXAAVany@1@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PA_JJ@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class boost::program_options::options_description & __thiscall boost::program_options::options_description::add(class boost::program_options::options_description const &)" (__imp_?add@options_description@program_options@boost@@QAEAAV123@ABV123@@Z) referenced in function "public: __thiscall Options::Options(class std::basic_string,class std::allocator > const &)" (??0Options@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
spout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class boost::program_options::options_description_easy_init & __thiscall boost::program_options::options_description_easy_init::operator()(char const *,class boost::program_options::value_semantic const *,char const *)" (__imp_??Roptions_description_easy_init@program_options@boost@@QAEAAV012@PBDPBVvalue_semantic@12@0@Z) referenced in function "public: __thiscall Options::Options(class std::basic_string,class std::allocator > const &)" (??0Options@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
C:\qpid\trunk\build\examples\messaging\Release\spout.exe : fatal error LNK1120: 22 unresolved externals


> C++ messaging spout and drain examples don't build on Windows
> -------------------------------------------------------------
>
>                 Key: QPID-2212
>                 URL: https://issues.apache.org/jira/browse/QPID-2212
>             Project: Qpid
>          Issue Type: Bug
>          Components: Qpid Examples
>    Affects Versions: 0.6
>         Environment: Windows
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>
> The new qpid/cpp/examples/messaging spout and drain examples get link failures for boost::program_options entrypoints.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2212) C++ messaging spout and drain examples don't build on Windows

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780481#action_12780481 ] 

Gordon Sim commented on QPID-2212:
----------------------------------

Steve, I've checked in what I hope is a fix for this (rr882447). It doesn't break the cmake build for me on linux, can you let me know if it fixes the problem on windows? Thanks!

> C++ messaging spout and drain examples don't build on Windows
> -------------------------------------------------------------
>
>                 Key: QPID-2212
>                 URL: https://issues.apache.org/jira/browse/QPID-2212
>             Project: Qpid
>          Issue Type: Bug
>          Components: Qpid Examples
>    Affects Versions: 0.6
>         Environment: Windows
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>
> The new qpid/cpp/examples/messaging spout and drain examples get link failures for boost::program_options entrypoints.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Assigned: (QPID-2212) C++ messaging spout and drain examples don't build on Windows

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim reassigned QPID-2212:
--------------------------------

    Assignee: Steve Huston  (was: Gordon Sim)

Steve,

Does your fix for QPID-2271 fix this now also? (At present building of spout and drain is disabled on windows).

> C++ messaging spout and drain examples don't build on Windows
> -------------------------------------------------------------
>
>                 Key: QPID-2212
>                 URL: https://issues.apache.org/jira/browse/QPID-2212
>             Project: Qpid
>          Issue Type: Bug
>          Components: Qpid Examples
>    Affects Versions: 0.6
>         Environment: Windows
>            Reporter: Steve Huston
>            Assignee: Steve Huston
>
> The new qpid/cpp/examples/messaging spout and drain examples get link failures for boost::program_options entrypoints.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-2212) C++ messaging spout and drain examples don't build on Windows

Posted by "Steve Huston (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Huston resolved QPID-2212.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6

No, that was unrelated unfortunately. The problem ended up being use of qpid::Options inlined calls to boost program_options which required adding that lib explicitly (Windows examples build without boost references normally).

Fixed on trunk r890888.


> C++ messaging spout and drain examples don't build on Windows
> -------------------------------------------------------------
>
>                 Key: QPID-2212
>                 URL: https://issues.apache.org/jira/browse/QPID-2212
>             Project: Qpid
>          Issue Type: Bug
>          Components: Qpid Examples
>    Affects Versions: 0.6
>         Environment: Windows
>            Reporter: Steve Huston
>            Assignee: Steve Huston
>             Fix For: 0.6
>
>
> The new qpid/cpp/examples/messaging spout and drain examples get link failures for boost::program_options entrypoints.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org