<?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[dumme Fehlermeldung...]]></title><description><![CDATA[<p>Hii,</p>
<p>nachdem ich kleine Veränderungen an meinem Code gemacht habe, bekomme ich diese dummen Fehlermeldungen:</p>
<p>Scheint wohl an dem Compiler zu liegen als an meinem Code, denn egal was ich an dem Code mache, ich bekomme immer diese Fehlermeldung. Hat einer ne Idee ?</p>
<pre><code class="language-cpp">Compiling...
polygon.cpp
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(3) : error C2146: syntax error : missing ';' before identifier 'winWidth'
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(3) : error C2501: 'GLsizei' : missing storage-class or type specifiers
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(3) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/161797/dumme-fehlermeldung</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 10:31:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161797.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Oct 2006 08:41:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 08:41:13 GMT]]></title><description><![CDATA[<p>Hii,</p>
<p>nachdem ich kleine Veränderungen an meinem Code gemacht habe, bekomme ich diese dummen Fehlermeldungen:</p>
<p>Scheint wohl an dem Compiler zu liegen als an meinem Code, denn egal was ich an dem Code mache, ich bekomme immer diese Fehlermeldung. Hat einer ne Idee ?</p>
<pre><code class="language-cpp">Compiling...
polygon.cpp
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(3) : error C2146: syntax error : missing ';' before identifier 'winWidth'
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(3) : error C2501: 'GLsizei' : missing storage-class or type specifiers
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(3) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1152701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152701</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Wed, 11 Oct 2006 08:41:13 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 08:48:22 GMT]]></title><description><![CDATA[<p>elturco schrieb:</p>
<blockquote>
<p>Hat einer ne Idee ?</p>
</blockquote>
<p>Zeig mal den angemeckerten Code und noch was oben drüber.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152712</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Wed, 11 Oct 2006 08:48:22 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 08:50:39 GMT]]></title><description><![CDATA[<p>Hier ist mein Code, bis gestern Abend konnte ich ohne weiteres Programmieren....</p>
<pre><code class="language-cpp">#include &lt;GL/glut.h&gt;
#include &lt;gl.h&gt;

GLsizei winWidth = 700;
GLsizei winHeight = 400;

class polygon
{
public:
	GLint x,y;
};

void init()
{
	glClearColor(0.0, 0.0, 1.0, 1.0);  // set Window Color to blue Hintergrundfarbe
	glMatrixMode(GL_PROJECTION);       //Art des Koordinatensystems
	gluOrtho2D(0.0, 200.0, 0.0, 150.0);////Koordinatenverteilung festlegen
                                             //x-&gt; 0.0 ... 200.0                                             //y- &gt; 0.0 ... 150.0
}

void displayFcn(void)
{
	glClear(GL_COLOR_BUFFER_BIT);      //Fenster löschen
	glPointSize(5.0);
	glLineWidth(1.75);

}

void winReshapeFcn(GLint newWidth, GLint newHeight)
{
	glViewport(0,0,newWidth, newHeight);
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluOrtho2D(0.0,GLdouble(newWidth),0.0,GLdouble(newHeight));

	winWidth = newWidth;
	winHeight= newHeight;
}

void drawPolygon(polygon endPt1, polygon endPt2)
{
	glBegin(GL_POLYGON);

	glVertex2i(endPt1.x,endPt2.y);
}

void drawLineSegment(polygon endPt1, polygon endPt2)
{
	glBegin(GL_POINTS);								//Zeichenmodus setzten	
	glVertex2i(endPt1.x, endPt1.y);

	glEnd();

}
/*
void drawLineLoop(polygon endPt1, polygon endPt2)
{
	drawLineSegment(endPt1,endPt2);
	glFlush();
	glBegin(GL_LINES);
	glVertex2i(endPt1.x, endPt1.y);	
	glBegin(GL_LINE_LOOP);
	glVertex2i(endPt1.x, endPt1.y);	
	glFlush();
}
*/

void drawLine(polygon endPt1, polygon endPt2)
{

	drawLineSegment(endPt1,endPt2);
	glBegin(GL_LINES);
	glFlush();

	glVertex2i(endPt1.x, endPt1.y);	
	glFlush();

}

void polyline(GLint button, GLint action, GLint xMouse, GLint yMouse) //Mouse callback prozedur
{
	static polygon endPt1, endPt2;

	if(button == GLUT_RIGHT_BUTTON &amp;&amp; action == GLUT_DOWN)
		{
			endPt1.x = xMouse;
			endPt1.y = winHeight - yMouse;

			drawLineSegment(endPt1, endPt2);
			glFlush();
			drawLine(endPt1, endPt2);
			glFlush();
			//drawLineLoop(endPt1,endPt2);
			glFlush();

			endPtCtr = 0;

		}
	else 
		if(button == GLUT_LEFT_BUTTON)

			glEnd();	

			glFlush();							   //zeichen
}

void main(int argc, char**argv)
{
	glutInit(&amp;argc, argv);                         //initialisierung der GLUT Bibliothek
	glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);   //Initialisierung des Bildschirms(Art des Zwischenspeichers, Farben)
	glutInitWindowPosition(100,100);			   //Positionierung des Fensters
	glutInitWindowSize(winWidth,winHeight);		   //Fenstergröße
	glutCreateWindow(&quot;Draw Interactive Polyline&quot;); //Fenstertitel

	init();
	glutDisplayFunc(displayFcn);				   //Festlegen der Funktion die zum zeichen auf dem Bildschurm verwendet wird
	glutReshapeFunc(winReshapeFcn);
	glutMouseFunc(polyline);					   //Funktion die die Funktion &quot;polyline&quot; aufruft, wenn der Maus betätigt wurde

	glutMainLoop();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1152714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152714</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Wed, 11 Oct 2006 08:50:39 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 08:59:47 GMT]]></title><description><![CDATA[<p>elturco schrieb:</p>
<blockquote>
<p>Hier ist mein Code, bis gestern Abend konnte ich ohne weiteres Programmieren....</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /><br />
kompilieren... <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="😉"
    /></p>
<p>Hmm, schade das einzige was mir auffällt ist, dass du wohl Linux nutzt, weil du nen Slash statt Backslash nutzt. (Dann wärst du aber wohl hier im falschen Unterforum.) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Mit Variablen außerhalb von Klassen hab ich das nicht so, daher kann ich zu den beiden Zeilen leider wenig sagen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Hast du den include für GLsizei denn gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152726</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Wed, 11 Oct 2006 08:59:47 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:02:50 GMT]]></title><description><![CDATA[<p>tu mal die <strong>glu.h</strong> noch mit einbinden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152730</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:02:50 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:02:55 GMT]]></title><description><![CDATA[<p>estartu schrieb:</p>
<blockquote>
<p>das einzige was mir auffällt ist, dass du wohl Linux nutzt, weil du nen Slash statt Backslash nutzt.</p>
</blockquote>
<p>daran sollte es nicht liegen. es geht sowohl / als auch \</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152731</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:03:27 GMT]]></title><description><![CDATA[<p>nein ich benutze keinen Linux, hab windows...</p>
<p>Die Sache ist die, wie gesagt konnte ich bis gestern Abend kompilieren und ausführen, ich hatte keine Probleme..<br />
Ein kollege hat da kleine Änderungen durchgeführt so dass ich seinen Code übernommen hab, ich hatte aber unmengen an fehler gehabt so dass ich wieder meinen Code benutzen wollte, und dann diese fehler halt....</p>
<p>danke dir aber trotzdem</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152732</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152732</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:09:06 GMT]]></title><description><![CDATA[<p>Pellaeon schrieb:</p>
<blockquote>
<p>tu mal die <strong>glu.h</strong> noch mit einbinden</p>
</blockquote>
<p>Hat nicht geholfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152739</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:09:06 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:11:14 GMT]]></title><description><![CDATA[<p>ich versuche die glu.h zu finden, werde euch berichten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152742</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152742</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:11:14 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:16:41 GMT]]></title><description><![CDATA[<p>und natürlich die glu32.lib dazu linken <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152747</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:16:41 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:17:17 GMT]]></title><description><![CDATA[<p>hat sich nichts geändert, die gleiche Fehlermeldung, mich wundert es eigentlich nur, dass ich gestern keine Probleme hatte, und auch nichts an der Konfiguration geändert habe....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152748</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152748</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:17:17 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:24:43 GMT]]></title><description><![CDATA[<p>gibts denn in VC++ so etwas wie &quot;Systemwiederherstellung&quot; hört sich zwar doof an aber wie gesagt gestern hatte ich keine Probleme, jetzt habe ich ein neues Projekt erstellt aber die gleiche Fehlermeldung...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1152754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152754</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:24:43 GMT</pubDate></item><item><title><![CDATA[Reply to dumme Fehlermeldung... on Wed, 11 Oct 2006 09:30:44 GMT]]></title><description><![CDATA[<p>Ich wollte nochmal was anmerken. Abgesehen davon dass ich nun auch noch 2 Warnungen bekomme, ist es denn richtig, dass unten steht &quot; Error executing cl.exe&quot; muss dass nicht &quot;Polygon.exe&quot; sein, also mein Projekt ?</p>
<pre><code class="language-cpp">--------------------Configuration: Polygon - Win32 Debug--------------------
Compiling...
polygon.cpp
c:\programme\microsoft visual studio\vc98\include\windef.h(121) : warning C4005: 'APIENTRY' : macro redefinition
        c:\programme\microsoft visual studio\myprojects\polygon\gl\glut.h(24) : see previous definition of 'APIENTRY'
c:\programme\microsoft visual studio\vc98\include\wingdi.h(21) : warning C4005: 'WINGDIAPI' : macro redefinition
        c:\programme\microsoft visual studio\myprojects\polygon\gl\glut.h(45) : see previous definition of 'WINGDIAPI'
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(4) : error C2146: syntax error : missing ';' before identifier 'winWidth'
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(4) : error C2501: 'GLsizei' : missing storage-class or type specifiers
c:\programme\microsoft visual studio\vc98\include\gl\gl.h(4) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

Polygon.exe - 3 error(s), 2 warning(s)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1152757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1152757</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Wed, 11 Oct 2006 09:30:44 GMT</pubDate></item></channel></rss>