Did you follow the directions in the README.md (<a href="https://github.com/alanxz/rabbitmq-c/blob/master/README.md">https://github.com/alanxz/rabbitmq-c/blob/master/README.md</a>)?<div><br></div><div>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)</div>
<div><br></div><div>The unresolved externals look like they're from rabbitcpp. You sure you're linking your executable with the rabbitcpp library?</div><div><br></div><div>-Alan<br><br><div class="gmail_quote">On Sun, Jun 24, 2012 at 12:43 PM, Kamran Afridi <span dir="ltr"><<a href="mailto:muhammad.kamrana@gmail.com" target="_blank">muhammad.kamrana@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Alan,</div><div> 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:<i> "Error copying file "/amqp_codegen.py" to "C:/Users/kamran/Documents/Visual Studio 2010/Projects/AMQP2/amqp_codegen.py"."</i></div>
<div><br></div><div>Sorry for being a newbie.</div><div><br></div><div>: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall AMQPException::getMessage(void)" (?getMessage@AMQPException@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function __catch$_main$0</div>
<div><br></div><div>1>c.obj : error LNK2019: unresolved external symbol "public: void __thiscall AMQPExchange::setHeader(char const *,int)" (?setHeader@AMQPExchange@@QAEXPBDH@Z) referenced in function _main</div>
<div><br></div><div>1>c.obj : error LNK2019: unresolved external symbol "public: void __thiscall AMQPQueue::Bind(char const *,char const *)" (?Bind@AMQPQueue@@QAEXPBD0@Z) referenced in function _main</div><div>
<br></div><div>1>c.obj : error LNK2019: unresolved external symbol "public: void __thiscall AMQPQueue::Declare(void)" (?Declare@AMQPQueue@@QAEXXZ) referenced in function _main</div><div><br></div><div>LNK1120: 12 unresolved externals</div>
<div><br></div><div>Though compiler is not showing amqp_framing error.</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Kamran</div></font></span><div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote">On Sun, Jun 24, 2012 at 5:12 PM, Alan Antonuk <span dir="ltr"><<a href="mailto:alan.antonuk@gmail.com" target="_blank">alan.antonuk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Somewhat obvious question: is amqp_framing.h in one of those two directories you set as an include?</div><div><br>
</div>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.<div>
<br></div><div>-Alan<br><br><div class="gmail_quote">On Sun, Jun 24, 2012 at 8:56 AM, Kamran <span dir="ltr"><<a href="mailto:muhammad.kamrana@gmail.com" target="_blank">muhammad.kamrana@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And I am using windows vista.<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>