You need to link in these two libraries
ws2_32.lib rpcrt4.lib

You can refer to the makefile-windows-debug.cfg file for the settings
needed to build an executable that uses the amqcpp library.


> -----Original Message-----
> From: spidy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 05, 2006 7:54 AM
> To: [email protected]
> Subject: Errors running the active-mq cpp client code
> 
> 
> 
> This is what I have tried to do so far.
> 
> I created a dll and a lib file for activemq-cpp using maven with
native
> plugin mojo.
> The I created a project (VS .net 2003 .. windows console empty
project)
> 
> Following are the project settings that I did ...
> Under Linker -> Additional Libs => I gave my activemq-cpp.lib file
that I
> created as above
> Under C/C++ -> General settings => I gave the path to the activemq-cpp
> source file directory
> 
> I compiled the code and it compiled fine after I corrected some errors
in
> the client code given on the site (seems to be outdated now -
considering
> new changes done within activemq-cpp)
> 
> When I compiled ... it compiled fine and at link time
> it gave me a lot of linking errors like
> 
> http://activemq.org/site/activemq-cpp-client.html
> 
> Anybody has an idea why I am getting these errors below.
> 
> RunClient error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: virtual void __thiscall
> activemq::network::TcpSocket::close(void)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@UAEXXZ)
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function "public: virtual void __thiscall
> activemq::network::TcpSocket::connect(char const *,int)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol
> [EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: virtual int __thiscall
> activemq::network::TcpSocket::getSoLinger(void)const "
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@UBEHXZ)
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function "public: virtual int __thiscall
> activemq::network::SocketInputStream::read(unsigned char *,int)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol
> [EMAIL PROTECTED]
> referenced in function "public: class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > __thiscall
> activemq::util::Guid::toString(void)const "
>
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]
d@
> @[EMAIL PROTECTED]@2@@std@@XZ)
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function "public: virtual int __thiscall
> activemq::network::SocketInputStream::available(void)const "
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@UBEHXZ)
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function "public: virtual void __thiscall
> activemq::network::SocketOutputStream::write(unsigned char const
*,int)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: virtual void __thiscall
> activemq::network::TcpSocket::setSoLinger(int)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function "public: virtual void __thiscall
> activemq::network::TcpSocket::close(void)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@UAEXXZ)
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function "public: virtual void __thiscall
> activemq::network::TcpSocket::connect(char const *,int)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: bool __thiscall
> activemq::util::Guid::operator<(class activemq::util::Guid const
&)const "
> ([EMAIL PROTECTED]@activemq@@QBE_NABV012@@Z)
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: class activemq::util::Guid &
__thiscall
> activemq::util::Guid::createGUID(void)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: __thiscall
> activemq::util::Guid::Guid(void)"
> ([EMAIL PROTECTED]@activemq@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: bool __thiscall
> activemq::util::Guid::operator==(class activemq::util::Guid const
&)const
> "
> ([EMAIL PROTECTED]@activemq@@QBE_NABV012@@Z)
> RunClient error LNK2019: unresolved external symbol
> [EMAIL PROTECTED]
> referenced in function "public: class activemq::util::Guid &
__thiscall
> activemq::util::Guid::operator=(class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > const &)"
>
([EMAIL PROTECTED]@activemq@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@st
d@
> @[EMAIL PROTECTED]@2@@std@@@Z)
> RunClient error LNK2019: unresolved external symbol [EMAIL PROTECTED]
> referenced in function "public: bool __thiscall
> activemq::util::Guid::isNull(void)const "
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@QBE_NXZ)
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > __thiscall
> activemq::util::Guid::toString(void)const "
>
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]
d@
> @[EMAIL PROTECTED]@2@@std@@XZ)
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: virtual __thiscall
>
activemq::network::TcpSocket::StaticSocketInitializer::~StaticSocketInit
ia
> lizer(void)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> RunClient error LNK2019: unresolved external symbol
> [EMAIL PROTECTED]
> referenced in function [EMAIL PROTECTED]
> RunClient error LNK2019: unresolved external symbol
[EMAIL PROTECTED]
> referenced in function "public: __thiscall
>
activemq::network::TcpSocket::StaticSocketInitializer::StaticSocketIniti
al
> izer(void)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
> 
> Can somebody tell me what these errors are.
> Can somebody also tell me how to use the dll file if generated
(project
> settings to be done in VS.Net 2003 that uses the dll - for compilation
and
> linking etc.)
> 
> Any help would be highly appreciated.
> 
> Thank you
> 
> Lalit
> --
> View this message in context:
http://www.nabble.com/Errors-running-the-
> active-mq-cpp-client-code-tf2220374.html#a6150458
> Sent from the ActiveMQ - User forum at Nabble.com.

Reply via email to