<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Problem with C++ code.</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21572/problem-with-c-code</link><description> 
Please help! 
I&amp;#39;m trying to compile &amp;amp; link followong code... 

 
class TLocation {

private:

 unsigned int X;
 unsigned int Y;

public:

 TLocation(unsigned int InitX = 0, unsigned int InitY = 0) {X = InitX; Y = InitY;}
 unsigned int GetX(void) {return</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Problem with C++ code.</title><link>https://community.arm.com/thread/75002?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2007 12:14:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7a6188c2-37bf-4b78-9858-0b2f36343e6c</guid><dc:creator>Georget Stephane</dc:creator><description>&lt;p&gt;&lt;p&gt;
Did you define your virtual functions properly, especially in the
base class? If there is no definition for them, the EC++ parser won&amp;#39;t
generate the virtual table, and that would lead to the linkage errors
that you&amp;#39;re seeing (the &amp;quot;unresolved __vtbl__yadda&amp;quot; symbol)&lt;/p&gt;

&lt;p&gt;
Good luck,&lt;/p&gt;

&lt;p&gt;
Steph-&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with C++ code.</title><link>https://community.arm.com/thread/48043?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2007 05:11:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1a251b6e-d1fa-466e-a168-18ba47d888d6</guid><dc:creator>Oleg Tren</dc:creator><description>&lt;p&gt;&lt;p&gt;
Also the Memory MAP listing...&lt;/p&gt;

&lt;pre&gt;
       VALUE       PUBLIC SYMBOL NAME               REP   TGR  CLASS   SECTION
      =======================================================================
      ...
      *EXTRN*     __nw__FUi                        ---   ---  ---     ---
      *EXTRN*     __vtbl__6TPoint                  ---   ---  ---     ---
      ...


UNRESOLVED EXTERNAL SYMBOLS:
   TGR: 0  NAME: __nw__FUi
   TGR: 0  NAME: __vtbl__6TPoint
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>