Re: [simpleamqpclient-users] rabbitmq Linking error

25 views
Skip to first unread message

Alan Antonuk

unread,
Jun 26, 2020, 3:41:19 PM6/26/20
to Santosh 113, simpleamqpclient-users
Make sure that you linking against the SimpleAmqpClient import library (libSimpleAmqpClient.lib, or something like it).


On Wed, Jun 24, 2020 at 2:27 AM Santosh 113 <darkmagi...@gmail.com> wrote:
Hi,

I want to implement simple rabbitmq client .
But to do that I first need to get the basic function up and running.

So I created a stand alone visual studio project first to get things going.
But with no success. I installed you Simpleamqpclient and everything looks fine.
So no compilation errors or files it can not access.

But when i try to run the sample code you have on the simpleamqpclient Github page (AmqpClient::Channel::ptr_t connection = AmqpClient::Channel::Create("localhost");
  I get this linking error:

(error LNK2019: unresolved external symbol "public: __cdecl AmqpClient::Channel::Channel(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,bool)" (??0Channel@AmqpClient@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H000H_N@Z) referenced in function "class boost::shared_ptr<class AmqpClient::Channel> __cdecl boost::make_shared<class AmqpClient::Channel,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int &,bool>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int &,bool &&)" (??$make_shared@VChannel@AmqpClient@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAHAEBV34@AEBV34@AEBV34@AEAH_N@boost@@YA?AV?$shared_ptr@VChannel@AmqpClient@@@0@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAH0001$$QEA_N@Z))

I don't know how to fix this.
Can someone help me ?

Thank you.

--
You received this message because you are subscribed to the Google Groups "simpleamqpclient-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simpleamqpclient-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simpleamqpclient-users/b299864b-4d2c-4f5e-a4cf-be5231f83ab6o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages