<?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>Unable to instantiate classes / objects</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/31073/unable-to-instantiate-classes-objects</link><description> 
Hi, 

 
I am moving from Eclipse / GCC to Keil ARM-MDK / uVision4 (the
&amp;quot;lite&amp;quot; version at present). I can compile, download and run simple C
programs OK. But I wish to be able use C++ classes (objects),
typically a few &amp;quot;static&amp;quot; objects that are instantiated</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Unable to instantiate classes / objects</title><link>https://community.arm.com/thread/61159?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2012 12:44:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:67cbd67c-431d-4ae3-b061-1bd2020f7826</guid><dc:creator>Thomas Ruschival</dc:creator><description>&lt;p&gt;&lt;p&gt;
I use this kind of objects quite extensively and had similar
issues when the Heapsize in startup.s was too small.&lt;br /&gt;
To track down this kind of problem I would:&lt;br /&gt;
1st) examine the linker map file. check if and at what address the
linker has decided to place the instance of the counter.&lt;br /&gt;
2nd) set a breakpoint in the reset handler in startup.s ans step
through the instructions.&lt;/p&gt;

&lt;p&gt;
Good luck and happy debugging&lt;br /&gt;
Thomas&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>