You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sodan <so...@sodan.dk> on 2009/08/05 23:40:38 UTC
link error CMS
after building the 3.0.1, then I get a link error when linking to my project.
1>Linking...
1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
external symbol "public: virtual void __thiscall
activemq::wireformat::openwire::marshal::v3::MarshallerFactory::configure(class
activemq::wireformat::openwire::OpenWireFormat *)"
(?configure@MarshallerFactory@v3@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
external symbol "public: virtual void __thiscall
activemq::wireformat::openwire::marshal::v2::MarshallerFactory::configure(class
activemq::wireformat::openwire::OpenWireFormat *)"
(?configure@MarshallerFactory@v2@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
tried different things... just wont work... hm...
any clues ?
Søren
--
View this message in context: http://www.nabble.com/link-error-CMS-tp24836683p24836683.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: link error CMS
Posted by Sodan <so...@sodan.dk>.
building of the library works fine, no problems.
its when linking I get these 2 link errors...
Søren
Sodan wrote:
>
> after building the 3.0.1, then I get a link error when linking to my
> project.
>
> 1>Linking...
>
> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
> external symbol "public: virtual void __thiscall
> activemq::wireformat::openwire::marshal::v3::MarshallerFactory::configure(class
> activemq::wireformat::openwire::OpenWireFormat *)"
> (?configure@MarshallerFactory@v3@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
>
> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
> external symbol "public: virtual void __thiscall
> activemq::wireformat::openwire::marshal::v2::MarshallerFactory::configure(class
> activemq::wireformat::openwire::OpenWireFormat *)"
> (?configure@MarshallerFactory@v2@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
>
> tried different things... just wont work... hm...
>
> any clues ?
> Søren
>
>
--
View this message in context: http://www.nabble.com/link-error-CMS-tp24836683p24840833.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: link error CMS
Posted by Timothy Bish <ta...@gmail.com>.
On Wed, 2009-08-05 at 14:56 -0700, Sodan wrote:
> Windows - Visual Studio 2008.
>
> static build.
>
> all the 2.2.X versions has compiled just fine.
>
> Søren
>
>
So this is happening when you build the ActiveMQ-CPP project or when you
try and link it to your appliaction?
>
> Timothy Bish wrote:
> >
> > On Wed, 2009-08-05 at 14:40 -0700, Sodan wrote:
> >> after building the 3.0.1, then I get a link error when linking to my
> >> project.
> >>
> >> 1>Linking...
> >>
> >> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
> >> external symbol "public: virtual void __thiscall
> >> activemq::wireformat::openwire::marshal::v3::MarshallerFactory::configure(class
> >> activemq::wireformat::openwire::OpenWireFormat *)"
> >> (?configure@MarshallerFactory@v3@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
> >>
> >> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
> >> external symbol "public: virtual void __thiscall
> >> activemq::wireformat::openwire::marshal::v2::MarshallerFactory::configure(class
> >> activemq::wireformat::openwire::OpenWireFormat *)"
> >> (?configure@MarshallerFactory@v2@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
> >>
> >> tried different things... just wont work... hm...
> >>
> >> any clues ?
> >> Søren
> >>
> >
> > You need to provide some more info on your platform/OS/compiler and how
> > you configured your build etc. Not really enough info to go on here.
> >
> > Regards
> > Tim
> >
> >
> >
> >
> >
>
--
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/
Re: link error CMS
Posted by Sodan <so...@sodan.dk>.
Windows - Visual Studio 2008.
static build.
all the 2.2.X versions has compiled just fine.
Søren
Timothy Bish wrote:
>
> On Wed, 2009-08-05 at 14:40 -0700, Sodan wrote:
>> after building the 3.0.1, then I get a link error when linking to my
>> project.
>>
>> 1>Linking...
>>
>> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
>> external symbol "public: virtual void __thiscall
>> activemq::wireformat::openwire::marshal::v3::MarshallerFactory::configure(class
>> activemq::wireformat::openwire::OpenWireFormat *)"
>> (?configure@MarshallerFactory@v3@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
>>
>> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
>> external symbol "public: virtual void __thiscall
>> activemq::wireformat::openwire::marshal::v2::MarshallerFactory::configure(class
>> activemq::wireformat::openwire::OpenWireFormat *)"
>> (?configure@MarshallerFactory@v2@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
>>
>> tried different things... just wont work... hm...
>>
>> any clues ?
>> Søren
>>
>
> You need to provide some more info on your platform/OS/compiler and how
> you configured your build etc. Not really enough info to go on here.
>
> Regards
> Tim
>
>
>
>
>
--
View this message in context: http://www.nabble.com/link-error-CMS-tp24836683p24836949.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: link error CMS
Posted by Timothy Bish <ta...@gmail.com>.
On Wed, 2009-08-05 at 14:40 -0700, Sodan wrote:
> after building the 3.0.1, then I get a link error when linking to my project.
>
> 1>Linking...
>
> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
> external symbol "public: virtual void __thiscall
> activemq::wireformat::openwire::marshal::v3::MarshallerFactory::configure(class
> activemq::wireformat::openwire::OpenWireFormat *)"
> (?configure@MarshallerFactory@v3@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
>
> 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
> external symbol "public: virtual void __thiscall
> activemq::wireformat::openwire::marshal::v2::MarshallerFactory::configure(class
> activemq::wireformat::openwire::OpenWireFormat *)"
> (?configure@MarshallerFactory@v2@marshal@openwire@wireformat@activemq@@UAEXPAVOpenWireFormat@456@@Z)
>
> tried different things... just wont work... hm...
>
> any clues ?
> Søren
>
You need to provide some more info on your platform/OS/compiler and how
you configured your build etc. Not really enough info to go on here.
Regards
Tim
Re: link error CMS
Posted by Sodan <so...@sodan.dk>.
ok, found this on the forum:
activemq::library::ActiveMQCPP::initializeLibrary();
now it works... that function I had missed.
Søren
Sodan wrote:
>
> took the project supplied along with 3.0.1 and it now links... donno
> why...
>
> but when I run the app it says:
>
> No Matching Factory Registered for format := tcp
> FILE: ..\src\main\activemq\transport\TransportRegistry.cpp, LINE:
> 50
> FILE: ..\src\main\activemq\core\ActiveMQConnectionFactory.cpp,
> LINE: 154
>
> and I did no changes to the project.
>
> Søren
>
>
--
View this message in context: http://www.nabble.com/link-error-CMS-tp24836683p24841102.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: link error CMS
Posted by Sodan <so...@sodan.dk>.
took the project supplied along with 3.0.1 and it now links... donno why...
but when I run the app it says:
No Matching Factory Registered for format := tcp
FILE: ..\src\main\activemq\transport\TransportRegistry.cpp, LINE: 50
FILE: ..\src\main\activemq\core\ActiveMQConnectionFactory.cpp, LINE:
154
and I did no changes to the project.
Søren
--
View this message in context: http://www.nabble.com/link-error-CMS-tp24836683p24841074.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.