<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi All,</p>
<p><br>
</p>
<p>I could figure this out.</p>
<p><br>
</p>
<p>I had missed -c options in my CFLAGS.</p>
<p><br>
</p>
<p>Thanks,</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><font face="Verdana" size="4">Ujwal Ramesh</font>
<div><font face="Verdana" size="2">Graduate Student,</font></div>
<div><font face="Verdana" size="2">University Of Cincinnati</font></div>
<div><font face="Verdana" size="2">Ph: &#43;1-513-302-4771</font></div>
</div>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Ramesh, Ujwal (rameshul)<br>
<b>Sent:</b> Thursday, October 16, 2014 10:05 PM<br>
<b>To:</b> bonmin@list.coin-or.org<br>
<b>Subject:</b> BonMin linking errors</font>
<div>&nbsp;</div>
</div>
<div>
<p>Hi All,</p>
<p><br>
</p>
<p>I am trying to link my C&#43;&#43;&nbsp; code with the Bonmin libraries and I have used the following lines in my Make file:</p>
<pre class="wiki">ADDINCFLAGS = -I$(HOME)/MyCoolPrograms/include<br>CXXFLAGS = -O3 -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas<br></pre>
<pre class="wiki">CXXLINKFLAGS =  -Wl,--rpath -Wl,/home/me/Coin-Pkg/lib</pre>
<p>as described in</p>
<p><br>
</p>
<p><a id="lnk147954" href="https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries">https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries</a></p>
<p><br>
</p>
<p>I am using a g&#43;&#43; compiler on UNIX enironment.</p>
<p><br>
</p>
<p>While I first included&nbsp; &quot;-pedantic-errors&quot; , I got the following error </p>
<p><br>
<em></em></p>
<p><em>comma at end of enumerator list</em></p>
<p><br>
</p>
<p>and as I was using someone else's headers, I had to remove this flag.</p>
<p><br>
</p>
<p>I tried compiling after removing the above flag and the below are the typr of errors I am getting:</p>
<p><br>
</p>
<p>1) usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 10</p>
<p>2) /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':<br>
(.text&#43;0x20): undefined reference to `main'</p>
<p>3) DesignMain.cxx:(.text&#43;0x12): undefined reference to `Cell::CellGetXpos()'</p>
<p>4) collect2: ld returned 1 exit status</p>
<p><br>
</p>
<p>Note: Regarding error (3), my code was compiling fine before including the Bonmin libraries.</p>
<p><br>
</p>
<p><br>
</p>
<p>Please let me know if I am missing anything basic here.</p>
<p><br>
</p>
<p>Also, Could you please let me know if there were already existing forms on Bonmin because, people would have faced similar errors and I could get my answers in the forum discussions ?</p>
<p><br>
</p>
<p>Thanks in advance for your help.</p>
<p><br>
</p>
<p>Regards,</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><font face="Verdana" size="4">Ujwal Ramesh</font>
<div><font face="Verdana" size="2">Graduate Student,</font></div>
<div><font face="Verdana" size="2">University Of Cincinnati</font></div>
<div><font face="Verdana" size="2">Ph: &#43;1-513-302-4771</font></div>
</div>
</div>
</div>
</div>
</body>
</html>