<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: c++ question..</title>
		<link>http://forums.leaflabs.com/topic.php?id=1295</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:20:53 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1295" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "c++ question.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=1295#post-7827</link>
			<pubDate>Sun, 22 Jan 2012 18:10:07 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">7827@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;lucky13 - I took the liberty of adding code delimiters, backticks to make your code easier to read.&#60;/p&#62;
&#60;p&#62;Is all of that really in one .h header file?&#60;br /&#62;
I &#60;strong&#62;NEVER&#60;/strong&#62; put code into a header file unless the code is &#60;code&#62;inline&#60;/code&#62;, or the file is a special include file (when I don't use .h for the file name).&#60;br /&#62;
(An example of a 'special include file' is machine generated code or initialised data, which is very different from what you seem to be doing.)&#60;/p&#62;
&#60;p&#62;What are you #including it into, is it a .cpp file?&#60;/p&#62;
&#60;p&#62;I think you'll need to explain all of the files involved so we can help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lucky13 on "c++ question.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=1295#post-7822</link>
			<pubDate>Sun, 22 Jan 2012 11:05:33 +0000</pubDate>
			<dc:creator>lucky13</dc:creator>
			<guid isPermaLink="false">7822@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Im trying to make a header class file but im having problems with the virtual void call..&#60;/p&#62;
&#60;p&#62;here is my code for the class&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;class Receiver {
public:

int transmitterCommand[LASTCHANNEL];

  Receiver(void) {
    transmitterCommand[ROLL] = 1500;
    transmitterCommand[PITCH] = 1500;
    transmitterCommand[YAW] = 1500;
    transmitterCommand[THROTTLE] = 1000;

  }

   virtual void read(void);

   const int getData(byte channel) {
    return transmitterCommand[channel];
  }

//transmitterCommand[PITCH] = 1300;

};

class Receiver_Quadroid : public Receiver {
public: 

   void read(void){

    transmitterCommand[ROLL] = 1800;
    transmitterCommand[PITCH] = 1800;
   }

};&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Im getting this error&#60;br /&#62;
&#34; &#38;lt;BUILD&#38;gt;\/Receiver2.h:21: undefined reference to `vtable for Receiver' &#34;&#60;br /&#62;
In the arduino IDE it works without any erros.. can anyone help?&#60;/p&#62;
&#60;p&#62;Thanx
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
