<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[the following virtual functions are abstract]]></title><description><![CDATA[<p>Hi,</p>
<p>ich portiere gerade ein Programm von VTK-4.2 nach VTK-5.0.<br />
Dabei bekomme ich folgenden Fehler:</p>
<pre><code class="language-cpp">class vtkQGLRenderWindow : public vtkOpenGLRenderWindow, public vtkQGLPtrToQT	
{
public:
	/* ------------------------------------------------------------
	* Methods from vtkRenderWindow class.
	*/
	static vtkQGLRenderWindow *New()
	{
		return new vtkQGLRenderWindow() ;
	};

	// ...
};
</code></pre>
<blockquote>
<p>In file included from <a href="http://vtkQGLRenderWindow.cc:43" rel="nofollow">vtkQGLRenderWindow.cc:43</a>:<br />
vtkQGLRenderWindow.h: In static member function <code>static vtkQGLRenderWindow* vtkQGLRenderWindow::New()': vtkQGLRenderWindow.h:25: error: cannot allocate an object of type</code><br />
vtkQGLRenderWindow'<br />
vtkQGLRenderWindow.h:25: error: because the following virtual functions are<br />
abstract:<br />
/home/karl/local/include/vtk/vtk-5.0/vtkWindow.h:64: error: virtual int*<br />
vtkWindow::GetScreenSize()<br />
/home/karl/local/include/vtk/vtk-5.0/vtkRenderWindow.h:112: error: virtual<br />
void vtkRenderWindow::Finalize()<br />
/home/karl/local/include/vtk/vtk-5.0/vtkRenderWindow.h:418: error: virtual<br />
void vtkRenderWindow::SetNextWindowId(void*)<br />
/home/karl/local/include/vtk/vtk-5.0/vtkRenderWindow.h:426: error: virtual<br />
void vtkRenderWindow::SetNextWindowInfo(char*)</p>
</blockquote>
<p>Scheinbar wurden die Funktionen in den Klassen virtuell angelegt, d.h. doch soviel wie: Ich muss diese Funktionen selber schreiben?</p>
<p>Gruss, Karl</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/135348/the-following-virtual-functions-are-abstract</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 22:17:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/135348.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Feb 2006 14:07:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to the following virtual functions are abstract on Wed, 01 Feb 2006 14:07:34 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich portiere gerade ein Programm von VTK-4.2 nach VTK-5.0.<br />
Dabei bekomme ich folgenden Fehler:</p>
<pre><code class="language-cpp">class vtkQGLRenderWindow : public vtkOpenGLRenderWindow, public vtkQGLPtrToQT	
{
public:
	/* ------------------------------------------------------------
	* Methods from vtkRenderWindow class.
	*/
	static vtkQGLRenderWindow *New()
	{
		return new vtkQGLRenderWindow() ;
	};

	// ...
};
</code></pre>
<blockquote>
<p>In file included from <a href="http://vtkQGLRenderWindow.cc:43" rel="nofollow">vtkQGLRenderWindow.cc:43</a>:<br />
vtkQGLRenderWindow.h: In static member function <code>static vtkQGLRenderWindow* vtkQGLRenderWindow::New()': vtkQGLRenderWindow.h:25: error: cannot allocate an object of type</code><br />
vtkQGLRenderWindow'<br />
vtkQGLRenderWindow.h:25: error: because the following virtual functions are<br />
abstract:<br />
/home/karl/local/include/vtk/vtk-5.0/vtkWindow.h:64: error: virtual int*<br />
vtkWindow::GetScreenSize()<br />
/home/karl/local/include/vtk/vtk-5.0/vtkRenderWindow.h:112: error: virtual<br />
void vtkRenderWindow::Finalize()<br />
/home/karl/local/include/vtk/vtk-5.0/vtkRenderWindow.h:418: error: virtual<br />
void vtkRenderWindow::SetNextWindowId(void*)<br />
/home/karl/local/include/vtk/vtk-5.0/vtkRenderWindow.h:426: error: virtual<br />
void vtkRenderWindow::SetNextWindowInfo(char*)</p>
</blockquote>
<p>Scheinbar wurden die Funktionen in den Klassen virtuell angelegt, d.h. doch soviel wie: Ich muss diese Funktionen selber schreiben?</p>
<p>Gruss, Karl</p>
]]></description><link>https://www.c-plusplus.net/forum/post/983059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/983059</guid><dc:creator><![CDATA[Karl Blau]]></dc:creator><pubDate>Wed, 01 Feb 2006 14:07:34 GMT</pubDate></item><item><title><![CDATA[Reply to the following virtual functions are abstract on Wed, 01 Feb 2006 14:11:49 GMT]]></title><description><![CDATA[<p>Karl Blau schrieb:</p>
<blockquote>
<p>Scheinbar wurden die Funktionen in den Klassen virtuell angelegt, d.h. doch soviel wie: Ich muss diese Funktionen selber schreiben?</p>
</blockquote>
<p>Richtig.<br />
Von diesen Methoden existiert in der Basisklasse nur die Schnittstelle - mit Funktionalität füllen mußt du sie selber (im Notfall als No-Op).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/983066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/983066</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Wed, 01 Feb 2006 14:11:49 GMT</pubDate></item><item><title><![CDATA[Reply to the following virtual functions are abstract on Wed, 01 Feb 2006 14:20:50 GMT]]></title><description><![CDATA[<p>No-Op?</p>
<p>&quot;Nix-Tun-Ding&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/983079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/983079</guid><dc:creator><![CDATA[Karl Blau]]></dc:creator><pubDate>Wed, 01 Feb 2006 14:20:50 GMT</pubDate></item><item><title><![CDATA[Reply to the following virtual functions are abstract on Wed, 01 Feb 2006 14:35:34 GMT]]></title><description><![CDATA[<p>Karl Blau schrieb:</p>
<blockquote>
<p>No-Op?</p>
<p>&quot;Nix-Tun-Ding&quot;?</p>
</blockquote>
<p>No-Op = &quot;No Operation&quot; <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> (= leere Funktion)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/983098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/983098</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Wed, 01 Feb 2006 14:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to the following virtual functions are abstract on Wed, 01 Feb 2006 14:47:07 GMT]]></title><description><![CDATA[<p>Tschäkpott!<br />
Vielen Dank, jetzt gehts,</p>
<p>KB</p>
]]></description><link>https://www.c-plusplus.net/forum/post/983108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/983108</guid><dc:creator><![CDATA[Karl Blau]]></dc:creator><pubDate>Wed, 01 Feb 2006 14:47:07 GMT</pubDate></item></channel></rss>