[rabbitmq-discuss] amqp_framing.h not found!

Alan Antonuk alan.antonuk at gmail.com
Sun Jun 24 21:23:27 BST 2012


Did you follow the directions in the README.md (
https://github.com/alanxz/rabbitmq-c/blob/master/README.md)?

I suspect you didn't do the git submodule init and git submodule update
steps (which is why you get the Error copying file /amqp_codegen.py error)

The unresolved externals look like they're from rabbitcpp.  You sure you're
linking your executable with the rabbitcpp library?

-Alan

On Sun, Jun 24, 2012 at 12:43 PM, Kamran Afridi
<muhammad.kamrana at gmail.com>wrote:

> Hi Alan,
>          I was able to use CMAKE (where source code: librabbitmq and build
> binaries: my project folder). These are the errors I get, and also there is
> visual studio file "ALL BUILD" when I try running that it gives me:*"Error copying file "/amqp_codegen.py" to "C:/Users/kamran/Documents/Visual
> Studio 2010/Projects/AMQP2/amqp_codegen.py"."*
>
> Sorry for being a newbie.
>
> : unresolved external symbol "public: class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > __thiscall
> AMQPException::getMessage(void)" (?getMessage at AMQPException
> @@QAE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ)
> referenced in function __catch$_main$0
>
> 1>c.obj : error LNK2019: unresolved external symbol "public: void
> __thiscall AMQPExchange::setHeader(char const *,int)"
> (?setHeader at AMQPExchange@@QAEXPBDH at Z) referenced in function _main
>
> 1>c.obj : error LNK2019: unresolved external symbol "public: void
> __thiscall AMQPQueue::Bind(char const *,char const *)" (?Bind at AMQPQueue
> @@QAEXPBD0 at Z) referenced in function _main
>
> 1>c.obj : error LNK2019: unresolved external symbol "public: void
> __thiscall AMQPQueue::Declare(void)" (?Declare at AMQPQueue@@QAEXXZ)
> referenced in function _main
>
> LNK1120: 12 unresolved externals
>
> Though compiler is not showing amqp_framing error.
>
> Thanks!
>
> Kamran
>
> On Sun, Jun 24, 2012 at 5:12 PM, Alan Antonuk <alan.antonuk at gmail.com>wrote:
>
>> Somewhat obvious question: is amqp_framing.h in one of those two
>> directories you set as an include?
>>
>> If you're building rabbitmq-c on Win32 (doesn't matter which version) I
>> would highly recommend using the CMake-based build to build it correctly.
>>
>> -Alan
>>
>> On Sun, Jun 24, 2012 at 8:56 AM, Kamran <muhammad.kamrana at gmail.com>wrote:
>>
>>> And I am using windows vista.
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120624/34150370/attachment.htm>


More information about the rabbitmq-discuss mailing list