but Alkinvoice is just the name of the library generated, does it have any connection with the alkInvoice class ?<div>because i have added the library using ADD_LIBRARY(Alkinvoice alkinvoice) and linked it using TARGET_LINK_LIBRARIES( Alkinvoice ), keeping the same name in both cases &quot; Alkinvoice &quot;.</div>
<div>and also i tried it changing the name to AlkInvoice , but still its giving the same error<br><br><div class="gmail_quote">On Sat, Jul 30, 2011 at 8:40 PM, Alvaro Soliverez <span dir="ltr">&lt;<a href="mailto:asoliverez@kde.org">asoliverez@kde.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello Puneet,<br>
check you CMakeLists.txt.<br>
<br>
Your ADD_LIBRARY statements say Alkinvoice, Alkpayment, etc.<br>
<br>
They should be AlkInvoice, etc.<br>
<br>
If you see the output of the make statement, it builds all objects,<br>
but with a lowercase name. So, then you call AlkInvoice  and it won&#39;t<br>
find it.<br>
<br>
It&#39;s the same with all the other classes.<br>
<div><div></div><div class="h5"><br>
On Sat, Jul 30, 2011 at 10:55 AM, puneet goyal &lt;<a href="mailto:puneetgoyal08@gmail.com">puneetgoyal08@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt; I am getting the error<br>
&gt; /home/puneet/puneet/office/alkimia/payment/backend/alkinvoicetest.cpp:38:<br>
&gt; undefined reference to `AlkInvoice::AlkInvoice(QObject*)&#39;<br>
&gt; where line 38 is<br>
&gt; AlkInvoice invoice;<br>
&gt; and a lot of other errors popped up bcause of it. I think there is some<br>
&gt; linking problem<br>
&gt; I have pasted the full output here  <a href="http://pastebin.com/mHxrZiDi" target="_blank">http://pastebin.com/mHxrZiDi</a><br>
&gt; or <a href="http://summer-opensource.blogspot.com/2011/07/errors-while-running-tests.html" target="_blank">http://summer-opensource.blogspot.com/2011/07/errors-while-running-tests.html</a><br>
&gt; Please let me know what could be the possible solution to this.<br>
&gt; Thank you<br>
&gt; Regards,<br>
&gt; Puneet<br>
&gt; -----------------------------------------------------------------------<br>
&gt; Puneet Goyal<br>
&gt; Student of B. Tech. III Year (Software Engineering)<br>
&gt; Delhi Technological University, Delhi<br>
&gt; -----------------------------------------------------------------------<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font size="2"><span style="border-collapse:collapse;font-family:arial,helvetica,sans-serif"><div><span style="border-collapse:collapse;font-family:arial,helvetica,sans-serif">-----------------------------------------------------------------------</span></div>
Puneet Goyal<br>Student of B. Tech. III Year (Software Engineering)<br>Delhi Technological University, Delhi</span></font><div><font size="2"><span style="border-collapse:collapse;font-family:arial,helvetica,sans-serif">-----------------------------------------------------------------------</span></font></div>
<br>
</div>