Kamran;<div><br></div><div>Lets keep this on the rabbitmq-discuss list so that others may benefit from this exchange</div><div><br></div><div>I think you&#39;re still trying to use the autotools build system. The recommended way to build rabbitmq-c on Windows is using the CMake build system.</div>
<div><br></div><div>Here is the complete rundown on commands I&#39;d use to build rabbitmq-c:</div><div><br></div><div>git clone <a href="https://github.com/alanxz/rabbitmq-c">https://github.com/alanxz/rabbitmq-c</a></div>
<div>cd rabbitmq-c</div><div>git submodule init</div><div>git submodule update</div><div>mkdir _build</div><div>cd _build</div><div>cmake-gui .. �; This will pop up the CMake gui. Click the configure button, select the toolchain you&#39;re using, then click generate when its finished configuring - rabbitmq-c should compile with most toolchains (MSVC, MinGW), you can also use the cmake command directly if you understand how this works.</div>
<div><br></div><div>At this point you&#39;ll have makefiles or visual studio solution/project files. If you&#39;re using makefiles you can make them with the appropriate makefile processor (nmake or gmake), if you&#39;re using visual studio, you can open the solution file then build using the ALL_BUILD project.</div>
<div><br></div><div>HTH</div><div><br></div><div>-Alan<br><br><div class="gmail_quote">On Mon, Jun 25, 2012 at 2:38 AM, Kamran Afridi <span dir="ltr">&lt;<a href="mailto:muhammad.kamrana@gmail.com" target="_blank">muhammad.kamrana@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Alan,<div>� � � � � � � � � While executing &quot;./configure&quot; it displays &quot;checking for python with simple json...NOT FOUND&quot; after which &quot;WARNING: unable to rebuild AMQP framing&quot; which is missing header file while building the C++ code, appears. I have installed Python 2.7 which �is suppose to have simple json. By the way I did all GIT commands.</div>

<div><br>Regards,</div><div>Kamran<div><div class="h5"><br>
<br><div class="gmail_quote">On Sun, Jun 24, 2012 at 10:23 PM, Alan Antonuk <span dir="ltr">&lt;<a href="mailto:alan.antonuk@gmail.com" target="_blank">alan.antonuk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Did you follow the directions in the README.md (<a href="https://github.com/alanxz/rabbitmq-c/blob/master/README.md" target="_blank">https://github.com/alanxz/rabbitmq-c/blob/master/README.md</a>)?<div><br></div><div>I suspect you didn&#39;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&#39;re from rabbitcpp. �You sure you&#39;re linking your executable with the rabbitcpp library?</div><span><font color="#888888"><div><br></div></font></span><div>


<span><font color="#888888">-Alan</font></span><div><div><br><br><div class="gmail_quote">On Sun, Jun 24, 2012 at 12:43 PM, Kamran Afridi <span dir="ltr">&lt;<a href="mailto:muhammad.kamrana@gmail.com" target="_blank">muhammad.kamrana@gmail.com</a>&gt;</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 &quot;ALL BUILD&quot; when I try running that it gives me:<i> &quot;Error copying file &quot;/amqp_codegen.py&quot; to &quot;C:/Users/kamran/Documents/Visual Studio 2010/Projects/AMQP2/amqp_codegen.py&quot;.&quot;</i></div>




<div><br></div><div>Sorry for being a newbie.</div><div><br></div><div>: unresolved external symbol &quot;public: class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __thiscall AMQPException::getMessage(void)&quot; (?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&gt;c.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall AMQPExchange::setHeader(char const *,int)&quot; (?setHeader@AMQPExchange@@QAEXPBDH@Z) referenced in function _main</div>




<div><br></div><div>1&gt;c.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall AMQPQueue::Bind(char const *,char const *)&quot; (?Bind@AMQPQueue@@QAEXPBD0@Z) referenced in function _main</div><div>




<br></div><div>1&gt;c.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall AMQPQueue::Declare(void)&quot; (?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><font color="#888888"><div><br></div><div>Kamran</div></font></span><div><div>
<br><div class="gmail_quote">On Sun, Jun 24, 2012 at 5:12 PM, Alan Antonuk <span dir="ltr">&lt;<a href="mailto:alan.antonuk@gmail.com" target="_blank">alan.antonuk@gmail.com</a>&gt;</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&#39;re building rabbitmq-c on Win32 (doesn&#39;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">&lt;<a href="mailto:muhammad.kamrana@gmail.com" target="_blank">muhammad.kamrana@gmail.com</a>&gt;</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></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>