[rabbitmq-discuss] Regarding C++

Steve Powell steve at rabbitmq.com
Fri Feb 24 15:06:42 GMT 2012


Just putting this on the m/l.

Steve Powell
steve at rabbitmq.com
[wrk: +44-2380-111-528] [mob: +44-7815-838-558]

On 24 Feb 2012, at 15:05, Steve Powell wrote:

> Sonali,
> 
> This is not our client code base, but if you go to
> https://github.com/cbusbey/rabbitmq-cpp#readme
> (at the top of the GitHub rabbitmq-cpp repository)
> you should find some instructions, which
> ought to be sufficient for building the examples!
> 
> It seems to say you need rabbitmq-c as well.
> 
> Sorry I can't give you explicit guidance, but it is a
> case of asking the community; try messaging Chris
> Busbey (cbusbey -- owner of the rabbitmq-cpp
> github repo) for more help.
> 
> Steve Powell
> steve at rabbitmq.com
> [wrk: +44-2380-111-528] [mob: +44-7815-838-558]
> 
> On 24 Feb 2012, at 10:35, Abhonkar, Sonali wrote:
> 
>> Hi Steve,
>> 
>> I tried following code from
>> https://github.com/cbusbey/rabbitmq-cpp/blob/master/examples/producer.cc
>> 
>> 
>> #include <iostream>
>> #include <client.h>
>> 
>> using namespace rabbitmqcpp;
>> 
>> int main(int argc, char * argv[])
>> {
>> if(argc < 5)
>> {
>>   std::cout << "usage: producer <host> <port> <exchange> <routing key>
>> <message>" << std::endl;
>>   return 1;
>> }
>> 
>> char const * host = argv[1];
>> int port = atoi(argv[2]);
>> char const * exchange = argv[3];
>> char const * routingkey = argv[4];
>> char const * message = argv[5];
>> 
>> Client c(host, port);
>> c.connect();
>> 
>> c.send(exchange, routingkey, message, strlen(message));
>> }
>> 
>> I have to include client.h file in my project?
>> In client.h there again another header files.
>> I want to know what are libraries are needed to communicate with AMQP,
>> How to compile & build the code. Can you please provide me steps.
>> 
>> Thanks,
>> Sonali
>> 
>> 
>> 
>> -----Original Message-----
>> From: Steve Powell [mailto:steve at rabbitmq.com] 
>> Sent: Thursday, February 23, 2012 6:27 PM
>> To: Abhonkar, Sonali
>> Cc: rabbitmq-discuss at lists.rabbitmq.com
>> Subject: Re: [rabbitmq-discuss] Regarding C++
>> 
>> Sonali,
>> 
>> You might like to check out the C/C++ clients that have been developed
>> by the
>> RabbitMQ Community. See the list at
>> (http://www.rabbitmq.com/devtools.html#c-dev).
>> 
>> Steve Powell
>> steve at rabbitmq.com
>> [wrk: +44-2380-111-528] [mob: +44-7815-838-558]
>> 
>> On 23 Feb 2012, at 11:56, Abhonkar, Sonali wrote:
>> 
>>> Hi,
>>> 
>>> First time I am working on messaging. So I am not able to do it using
>> rabbitMQ.
>>> My aim is to write a code in C++, to transfer message   "Hi World" to
>> other machine using RabbitMQ.
>>> Can you please help me in this.
>>> 
>>> Thanks & Regards,
>>> Sonali.
>>> 
>>> This e-mail and the documents attached are confidential and intended
>> solely for the addressee; it may also be privileged. If you receive this
>> e-mail in error, please notify the sender immediately and destroy it. As
>> its integrity cannot be secured on the Internet, the Atos group
>> liability cannot be triggered for the message content. Although the
>> sender endeavors to maintain a computer virus-free network, the sender
>> does not warrant that this transmission is virus-free and will not be
>> liable for any damages resulting from any virus transmitted.
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>> 
>> 
>> 
>> 
>> This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120224/8d7cbeb6/attachment.htm>


More information about the rabbitmq-discuss mailing list