<?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[error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope]]></title><description><![CDATA[<p>Ich will mein OpenGL Programm mit dem MinGW kompilieren aber ich bekomme folgende Fehler:</p>
<pre><code>make: Entering directory `/d/Eigene Dateien/cpp/gl/tloader'
-----------------------------------------------------------------------
compiling main.cpp ...
In file included from tloader.h:16,
                 from main.cpp:1:
vector.h: In member function `void CVector::TexcoordToGL() const':
vector.h:24: error: `GL_TEXTURE0_ARB' was not declared in this scope
vector.h:24: error: `glMultiTexCoord3fvARB' was not declared in this scope
vector.h:24: warning: unused variable 'GL_TEXTURE0_ARB'
vector.h:24: warning: unused variable 'glMultiTexCoord3fvARB'
vector.h: In member function `void CVector::TangXToGL() const':
vector.h:25: error: `GL_TEXTURE1_ARB' was not declared in this scope
vector.h:25: error: `glMultiTexCoord3fvARB' was not declared in this scope
vector.h:25: warning: unused variable 'GL_TEXTURE1_ARB'
vector.h:25: warning: unused variable 'glMultiTexCoord3fvARB'
vector.h: In member function `void CVector::TangYToGL() const':
vector.h:26: error: `GL_TEXTURE2_ARB' was not declared in this scope
vector.h:26: error: `glMultiTexCoord3fvARB' was not declared in this scope
vector.h:26: warning: unused variable 'GL_TEXTURE2_ARB'
vector.h:26: warning: unused variable 'glMultiTexCoord3fvARB'
make: *** [main.o] Error 1
make: Leaving directory `/d/Eigene Dateien/cpp/gl/tloader'
</code></pre>
<p>So sieht die Makefile aus:</p>
<pre><code>OBJ := main.o mesh.o shader.o texture.o vector.o vector2.o
MINGW_BIN := &quot;D:\lib\MinGW\bin\g++.exe&quot; 
OUTPUT_BIN := &quot;tloader.exe&quot;
MAKEFLAGS += -swr

all: start

start: $(OBJ)
	@echo &quot;......................................................................&quot;
	@echo &quot;linking ...&quot;
	$(MINGW_BIN) -ID:\lib\MinGW\include -LD:\lib\MinGW\lib -lSDL -lSDL_image -lgl32 -lglu32 -Wall -o $(OUTPUT_BIN) $(OBJ)

%.o: %.cpp *.h
	@echo &quot;-----------------------------------------------------------------------&quot;
	@echo &quot;compiling $&lt; ...&quot;
	$(MINGW_BIN) -ID:\lib\MinGW\include -LD:\lib\MinGW\lib -lSDL -lSDL_image -lgl32 -lglu32 -Wall -c -o $@ $&lt;

clean:
	@rm -fv *.o

distclean: clean
	@rm -fv $(OUTPUT_BIN)
</code></pre>
<p>und so die beiden Dateien, die der Fehler betrifft:</p>
<p>vector.h:</p>
<pre><code class="language-cpp">#ifndef _VECTOR_H
#define _VECTOR_H

struct CVector
{
	union
	{
		float v[3];
		struct
		{
			float x;
			float y;
			float z;
		};
		CVector2 xy;
	};

	void Set(float _x, float _y, float _z) { x = _x; y = _y; z = _z; };
	float Len(void) const		{ return sqrt(x * x + y * y + z * z); };
   float SquaredLen(void) const		{ return x * x + y * y + z * z; };
	void Normalize(void)		{ float l; l = 1.0 / Len(); x *= l; y *= l; z *= l; };
	void PutToGL(void) const	{ glVertex3fv(v); };
	void NormalToGL(void) const	{ glNormal3fv(v); };
	void TexcoordToGL(void) const	{ glMultiTexCoord3fvARB(GL_TEXTURE0_ARB, v); };
	void TangXToGL(void) const	{ glMultiTexCoord3fvARB(GL_TEXTURE1_ARB, v); };
	void TangYToGL(void) const	{ glMultiTexCoord3fvARB(GL_TEXTURE2_ARB, v); };
	void SetFromPlane(const CVector2 &amp;p, const CVector &amp;n, float d);
	CVector operator -(void) const	{CVector r; r.x = -x, r.y = -y, r.z = -z; return r; };
	operator CVector2() const	{CVector2 r; r.x = x; r.y = -z; return r; };

	CVector &amp;operator+=(const CVector o)	{x += o.x; y += o.y; z += o.z; return *this;};
	CVector &amp;operator-=(const CVector o)	{x -= o.x; y -= o.y; z -= o.z; return *this;};
	CVector &amp;operator*=(const CVector o)	{x *= o.x; y *= o.y; z *= o.z; return *this;};
	CVector &amp;operator*=(float f)		{x *= f; y *= f; z *= f; return *this;};
	CVector &amp;operator/=(float f)		{x /= f; y /= f; z /= f; return *this;};
};

CVector Vec(float x, float y, float z);
CVector operator+(const CVector &amp;a, const CVector &amp;b);
CVector operator-(const CVector &amp;a, const CVector &amp;b);
CVector operator*(const CVector &amp;a, float scalar);
CVector operator*(float scalar, const CVector &amp;a);
double Dot(const CVector &amp;a, const CVector &amp;b);
CVector Cross(const CVector &amp;a, const CVector &amp;b);
CVector Vec(const CVector2 &amp;v, float y);
CVector Rotate(const CVector &amp;vec, const CVector &amp;axis, float angle);
double Det(const CVector &amp;v1, const CVector &amp;v2, const CVector &amp;v3);

#endif
</code></pre>
<p>tloader.h:</p>
<pre><code class="language-cpp">#ifndef TLOADER_H
#define TLOADER_H

#define GL_GLEXT_PROTOTYPES

#define MAX_LINE_LEN 300

#include &lt;math.h&gt;
#include &lt;fstream&gt;
#include &lt;iostream&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;GL/gl.h&gt;
#include &lt;GL/glu.h&gt;
#include &quot;vector2.h&quot;
#include &quot;vector.h&quot;
#include &quot;shader.h&quot;
#include &quot;texture.h&quot;
#include &quot;mesh.h&quot;

#endif
</code></pre>
<p>EDIT:<br />
Auf Ubuntu läuft der Code einwandfrei! Muss also am MinGW liegen!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/253789/error-gl_texture0_arb-was-not-declared-in-this-scope</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 23:06:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/253789.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Nov 2009 16:44:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope on Fri, 06 Nov 2009 16:46:03 GMT]]></title><description><![CDATA[<p>Ich will mein OpenGL Programm mit dem MinGW kompilieren aber ich bekomme folgende Fehler:</p>
<pre><code>make: Entering directory `/d/Eigene Dateien/cpp/gl/tloader'
-----------------------------------------------------------------------
compiling main.cpp ...
In file included from tloader.h:16,
                 from main.cpp:1:
vector.h: In member function `void CVector::TexcoordToGL() const':
vector.h:24: error: `GL_TEXTURE0_ARB' was not declared in this scope
vector.h:24: error: `glMultiTexCoord3fvARB' was not declared in this scope
vector.h:24: warning: unused variable 'GL_TEXTURE0_ARB'
vector.h:24: warning: unused variable 'glMultiTexCoord3fvARB'
vector.h: In member function `void CVector::TangXToGL() const':
vector.h:25: error: `GL_TEXTURE1_ARB' was not declared in this scope
vector.h:25: error: `glMultiTexCoord3fvARB' was not declared in this scope
vector.h:25: warning: unused variable 'GL_TEXTURE1_ARB'
vector.h:25: warning: unused variable 'glMultiTexCoord3fvARB'
vector.h: In member function `void CVector::TangYToGL() const':
vector.h:26: error: `GL_TEXTURE2_ARB' was not declared in this scope
vector.h:26: error: `glMultiTexCoord3fvARB' was not declared in this scope
vector.h:26: warning: unused variable 'GL_TEXTURE2_ARB'
vector.h:26: warning: unused variable 'glMultiTexCoord3fvARB'
make: *** [main.o] Error 1
make: Leaving directory `/d/Eigene Dateien/cpp/gl/tloader'
</code></pre>
<p>So sieht die Makefile aus:</p>
<pre><code>OBJ := main.o mesh.o shader.o texture.o vector.o vector2.o
MINGW_BIN := &quot;D:\lib\MinGW\bin\g++.exe&quot; 
OUTPUT_BIN := &quot;tloader.exe&quot;
MAKEFLAGS += -swr

all: start

start: $(OBJ)
	@echo &quot;......................................................................&quot;
	@echo &quot;linking ...&quot;
	$(MINGW_BIN) -ID:\lib\MinGW\include -LD:\lib\MinGW\lib -lSDL -lSDL_image -lgl32 -lglu32 -Wall -o $(OUTPUT_BIN) $(OBJ)

%.o: %.cpp *.h
	@echo &quot;-----------------------------------------------------------------------&quot;
	@echo &quot;compiling $&lt; ...&quot;
	$(MINGW_BIN) -ID:\lib\MinGW\include -LD:\lib\MinGW\lib -lSDL -lSDL_image -lgl32 -lglu32 -Wall -c -o $@ $&lt;

clean:
	@rm -fv *.o

distclean: clean
	@rm -fv $(OUTPUT_BIN)
</code></pre>
<p>und so die beiden Dateien, die der Fehler betrifft:</p>
<p>vector.h:</p>
<pre><code class="language-cpp">#ifndef _VECTOR_H
#define _VECTOR_H

struct CVector
{
	union
	{
		float v[3];
		struct
		{
			float x;
			float y;
			float z;
		};
		CVector2 xy;
	};

	void Set(float _x, float _y, float _z) { x = _x; y = _y; z = _z; };
	float Len(void) const		{ return sqrt(x * x + y * y + z * z); };
   float SquaredLen(void) const		{ return x * x + y * y + z * z; };
	void Normalize(void)		{ float l; l = 1.0 / Len(); x *= l; y *= l; z *= l; };
	void PutToGL(void) const	{ glVertex3fv(v); };
	void NormalToGL(void) const	{ glNormal3fv(v); };
	void TexcoordToGL(void) const	{ glMultiTexCoord3fvARB(GL_TEXTURE0_ARB, v); };
	void TangXToGL(void) const	{ glMultiTexCoord3fvARB(GL_TEXTURE1_ARB, v); };
	void TangYToGL(void) const	{ glMultiTexCoord3fvARB(GL_TEXTURE2_ARB, v); };
	void SetFromPlane(const CVector2 &amp;p, const CVector &amp;n, float d);
	CVector operator -(void) const	{CVector r; r.x = -x, r.y = -y, r.z = -z; return r; };
	operator CVector2() const	{CVector2 r; r.x = x; r.y = -z; return r; };

	CVector &amp;operator+=(const CVector o)	{x += o.x; y += o.y; z += o.z; return *this;};
	CVector &amp;operator-=(const CVector o)	{x -= o.x; y -= o.y; z -= o.z; return *this;};
	CVector &amp;operator*=(const CVector o)	{x *= o.x; y *= o.y; z *= o.z; return *this;};
	CVector &amp;operator*=(float f)		{x *= f; y *= f; z *= f; return *this;};
	CVector &amp;operator/=(float f)		{x /= f; y /= f; z /= f; return *this;};
};

CVector Vec(float x, float y, float z);
CVector operator+(const CVector &amp;a, const CVector &amp;b);
CVector operator-(const CVector &amp;a, const CVector &amp;b);
CVector operator*(const CVector &amp;a, float scalar);
CVector operator*(float scalar, const CVector &amp;a);
double Dot(const CVector &amp;a, const CVector &amp;b);
CVector Cross(const CVector &amp;a, const CVector &amp;b);
CVector Vec(const CVector2 &amp;v, float y);
CVector Rotate(const CVector &amp;vec, const CVector &amp;axis, float angle);
double Det(const CVector &amp;v1, const CVector &amp;v2, const CVector &amp;v3);

#endif
</code></pre>
<p>tloader.h:</p>
<pre><code class="language-cpp">#ifndef TLOADER_H
#define TLOADER_H

#define GL_GLEXT_PROTOTYPES

#define MAX_LINE_LEN 300

#include &lt;math.h&gt;
#include &lt;fstream&gt;
#include &lt;iostream&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;GL/gl.h&gt;
#include &lt;GL/glu.h&gt;
#include &quot;vector2.h&quot;
#include &quot;vector.h&quot;
#include &quot;shader.h&quot;
#include &quot;texture.h&quot;
#include &quot;mesh.h&quot;

#endif
</code></pre>
<p>EDIT:<br />
Auf Ubuntu läuft der Code einwandfrei! Muss also am MinGW liegen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1804518</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1804518</guid><dc:creator><![CDATA[theprogrammer12]]></dc:creator><pubDate>Fri, 06 Nov 2009 16:46:03 GMT</pubDate></item><item><title><![CDATA[Reply to error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope on Sat, 07 Nov 2009 09:37:49 GMT]]></title><description><![CDATA[<p>du hast im vector.h vergessen die nötigen Dateien zu #includen, in denen GL_TEXTURE0_ARB usw. definiert werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1804724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1804724</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Sat, 07 Nov 2009 09:37:49 GMT</pubDate></item><item><title><![CDATA[Reply to error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope on Sat, 07 Nov 2009 11:12:47 GMT]]></title><description><![CDATA[<p>Die &lt;GL/GL.h&gt; die mit Windows kommt bzw der SDK enthält leider nur die Defintionen bis OpenGL1.4 und kaum Extensions. Verwende daher am besten glew um die alle Extensions zur Verfügung zu haben. Erspart Dir auch das umständliche laden der Funktionen aus der Treiber-DLL.<br />
<a href="http://glew.sf.net" rel="nofollow">http://glew.sf.net</a><br />
rya.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1804749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1804749</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Sat, 07 Nov 2009 11:12:47 GMT</pubDate></item><item><title><![CDATA[Reply to error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope on Sun, 08 Nov 2009 10:11:23 GMT]]></title><description><![CDATA[<p>Scorcher24 schrieb:</p>
<blockquote>
<p>Die &lt;GL/GL.h&gt; die mit Windows kommt bzw der SDK enthält leider nur die Defintionen bis OpenGL1.4 und kaum Extensions. Verwende daher am besten glew um die alle Extensions zur Verfügung zu haben. Erspart Dir auch das umständliche laden der Funktionen aus der Treiber-DLL.<br />
<a href="http://glew.sf.net" rel="nofollow">http://glew.sf.net</a><br />
rya.</p>
</blockquote>
<p>Danke! Werd ich gleich mal testen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1805044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1805044</guid><dc:creator><![CDATA[theprogrammer12]]></dc:creator><pubDate>Sun, 08 Nov 2009 10:11:23 GMT</pubDate></item><item><title><![CDATA[Reply to error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope on Sun, 08 Nov 2009 11:43:27 GMT]]></title><description><![CDATA[<p>ok. Die Fehler sind weg. aber dafür kommen gleich die nächsten:</p>
<pre><code>make: Entering directory `/d/Eigene Dateien/cpp/gl/tloader'
......................................................................
linking ...
main.o:main.cpp:(.text+0x13b): undefined reference to `glShadeModel@4'
main.o:main.cpp:(.text+0x14a): undefined reference to `glCullFace@4'
main.o:main.cpp:(.text+0x159): undefined reference to `glFrontFace@4'
main.o:main.cpp:(.text+0x168): undefined reference to `glEnable@4'
main.o:main.cpp:(.text+0x193): undefined reference to `glClearColor@16'
main.o:main.cpp:(.text+0x1bc): undefined reference to `glViewport@16'
main.o:main.cpp:(.text+0x1cb): undefined reference to `glMatrixMode@4'
main.o:main.cpp:(.text+0x1d3): undefined reference to `glLoadIdentity@0'
main.o:main.cpp:(.text+0x1f8): undefined reference to `gluPerspective@32'
main.o:main.cpp:(.text+0x209): undefined reference to `SDL_PumpEvents'
main.o:main.cpp:(.text+0x215): undefined reference to `SDL_GetKeyState'
main.o:main.cpp:(.text+0x26b): undefined reference to `glColor3f@12'
main.o:main.cpp:(.text+0x288): undefined reference to `glMaterialfv@12'
main.o:main.cpp:(.text+0x45a): undefined reference to `glGenTextures@8'
main.o:main.cpp:(.text+0x473): undefined reference to `glBindTexture@8'
main.o:main.cpp:(.text+0x4c4): undefined reference to `glTexImage2D@36'
main.o:main.cpp:(.text+0x505): undefined reference to `gluBuild2DMipmaps@28'
main.o:main.cpp:(.text+0x524): undefined reference to `glTexParameteri@12'
main.o:main.cpp:(.text+0x543): undefined reference to `glTexParameteri@12'
main.o:main.cpp:(.text+0x562): undefined reference to `glTexParameteri@12'
main.o:main.cpp:(.text+0x581): undefined reference to `glTexParameteri@12'
main.o:main.cpp:(.text+0x598): undefined reference to `glBindTexture@8'
main.o:main.cpp:(.text+0x5b6): undefined reference to `glClear@4'
main.o:main.cpp:(.text+0x5c5): undefined reference to `glEnable@4'
main.o:main.cpp:(.text+0x5d4): undefined reference to `glEnable@4'
main.o:main.cpp:(.text+0x5eb): undefined reference to `glLightModeli@8'
main.o:main.cpp:(.text+0x5fa): undefined reference to `glMatrixMode@4'
main.o:main.cpp:(.text+0x602): undefined reference to `glLoadIdentity@0'
main.o:main.cpp:(.text+0x636): undefined reference to `gluPerspective@32'
main.o:main.cpp:(.text+0x645): undefined reference to `glMatrixMode@4'
main.o:main.cpp:(.text+0x64d): undefined reference to `glLoadIdentity@0'
main.o:main.cpp:(.text+0x68f): undefined reference to `gluLookAt@72'
main.o:main.cpp:(.text+0x69e): undefined reference to `glEnable@4'
main.o:main.cpp:(.text+0x6d5): undefined reference to `glPointSize@4'
main.o:main.cpp:(.text+0x6e4): undefined reference to `glBegin@4'
main.o:main.cpp:(.text+0x706): undefined reference to `glVertex3f@12'
main.o:main.cpp:(.text+0x70e): undefined reference to `glEnd@0'
main.o:main.cpp:(.text+0x713): undefined reference to `SDL_GL_SwapBuffers'
main.o:main.cpp:(.text+0x728): undefined reference to `SDL_Init'
main.o:main.cpp:(.text+0x73d): undefined reference to `SDL_GetVideoInfo'
main.o:main.cpp:(.text+0x787): undefined reference to `SDL_GL_SetAttribute'
main.o:main.cpp:(.text+0x79b): undefined reference to `SDL_GL_SetAttribute'
main.o:main.cpp:(.text+0x7af): undefined reference to `SDL_GL_SetAttribute'
main.o:main.cpp:(.text+0x7c3): undefined reference to `SDL_GL_SetAttribute'
main.o:main.cpp:(.text+0x7d7): undefined reference to `SDL_GL_SetAttribute'
main.o:main.cpp:(.text+0x802): undefined reference to `SDL_SetVideoMode'
shader.o:shader.cpp:(.text+0x15d): undefined reference to `_imp____glewGetObjectParameterivARB'
shader.o:shader.cpp:(.text+0x193): undefined reference to `_imp____glewGetInfoLogARB'
shader.o:shader.cpp:(.text+0x206): undefined reference to `_imp____glewCreateShaderObjectARB'
shader.o:shader.cpp:(.text+0x239): undefined reference to `_imp____glewCreateProgramObjectARB'
shader.o:shader.cpp:(.text+0x276): undefined reference to `_imp____glewCompileShaderARB'
shader.o:shader.cpp:(.text+0x2a3): undefined reference to `_imp____glewGetObjectParameterivARB'
shader.o:shader.cpp:(.text+0x2d6): undefined reference to `_imp____glewDeleteObjectARB'
shader.o:shader.cpp:(.text+0x316): undefined reference to `_imp____glewLinkProgramARB'
shader.o:shader.cpp:(.text+0x343): undefined reference to `_imp____glewGetObjectParameterivARB'
shader.o:shader.cpp:(.text+0x376): undefined reference to `_imp____glewDeleteObjectARB'
shader.o:shader.cpp:(.text+0x3c0): undefined reference to `_imp____glewShaderSourceARB'
shader.o:shader.cpp:(.text+0x3fe): undefined reference to `_imp____glewAttachObjectARB'
shader.o:shader.cpp:(.text+0x4a0): undefined reference to `_imp____glewGetUniformLocationARB'
shader.o:shader.cpp:(.text+0x5f1): undefined reference to `_imp____glewUseProgramObjectARB'
shader.o:shader.cpp:(.text+0x606): undefined reference to `_imp____glewUniform1iARB'
shader.o:shader.cpp:(.text+0x623): undefined reference to `_imp____glewUniform1iARB'
shader.o:shader.cpp:(.text+0x640): undefined reference to `_imp____glewUniform1iARB'
shader.o:shader.cpp:(.text+0x65c): undefined reference to `_imp____glewUseProgramObjectARB'
shader.o:shader.cpp:(.text+0x6c6): undefined reference to `glLightfv@12'
shader.o:shader.cpp:(.text+0x6ff): undefined reference to `glLightModelfv@8'
shader.o:shader.cpp:(.text+0x710): undefined reference to `_imp____glewUseProgramObjectARB'
shader.o:shader.cpp:(.text+0x725): undefined reference to `_imp____glewUniform3f'
shader.o:shader.cpp:(.text+0x757): undefined reference to `_imp____glewUniform3f'
shader.o:shader.cpp:(.text+0x789): undefined reference to `_imp____glewUniform1f'
shader.o:shader.cpp:(.text+0x7a4): undefined reference to `_imp____glewActiveTextureARB'
shader.o:shader.cpp:(.text+0x7c5): undefined reference to `glBindTexture@8'
shader.o:shader.cpp:(.text+0x7cd): undefined reference to `_imp____glewActiveTextureARB'
shader.o:shader.cpp:(.text+0x7ee): undefined reference to `glBindTexture@8'
shader.o:shader.cpp:(.text+0x7f6): undefined reference to `_imp____glewActiveTextureARB'
shader.o:shader.cpp:(.text+0x817): undefined reference to `glBindTexture@8'
shader.o:shader.cpp:(.text+0x827): undefined reference to `_imp____glewUseProgramObjectARB'
shader.o:shader.cpp:(.text+0xb3c): undefined reference to `glGetFloatv@8'
shader.o:shader.cpp:(.text+0xb55): undefined reference to `glGenTextures@8'
shader.o:shader.cpp:(.text+0xb6e): undefined reference to `glBindTexture@8'
shader.o:shader.cpp:(.text+0xbce): undefined reference to `glTexImage2D@36'
shader.o:shader.cpp:(.text+0xc1e): undefined reference to `gluBuild2DMipmaps@28'
shader.o:shader.cpp:(.text+0xc3d): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0xc5c): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0xc7b): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0xc9a): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0xcbb): undefined reference to `glTexParameterf@12'
shader.o:shader.cpp:(.text+0xcd2): undefined reference to `glBindTexture@8'
shader.o:shader.cpp:(.text+0xf42): undefined reference to `glGenTextures@8'
shader.o:shader.cpp:(.text+0xf5b): undefined reference to `glBindTexture@8'
shader.o:shader.cpp:(.text+0xfac): undefined reference to `glTexImage2D@36'
shader.o:shader.cpp:(.text+0xfcb): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0xfea): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0x1009): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0x1028): undefined reference to `glTexParameteri@12'
shader.o:shader.cpp:(.text+0x103f): undefined reference to `glBindTexture@8'
texture.o:texture.cpp:(.text+0x2ff): undefined reference to `glDeleteTextures@8'
texture.o:texture.cpp:(.text+0x321): undefined reference to `glDeleteTextures@8'
texture.o:texture.cpp:(.text+0x343): undefined reference to `glDeleteTextures@8'
texture.o:texture.cpp:(.text+0x369): undefined reference to `glDeleteTextures@8'
texture.o:texture.cpp:(.text+0x38b): undefined reference to `glDeleteTextures@8'
texture.o:texture.cpp:(.text+0x3ad): more undefined references to `glDeleteTextures@8' follow
d:/lib/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
make: *** [start] Error 1
make: Leaving directory `/d/Eigene Dateien/cpp/gl/tloader'
</code></pre>
<p>Hier die neue Makefile:</p>
<pre><code>OBJ := main.o mesh.o shader.o texture.o vector.o vector2.o
MINGW_BIN := &quot;D:\lib\MinGW\bin\g++.exe&quot; 
OUTPUT_BIN := &quot;tloader.exe&quot;
MAKEFLAGS += -swr

all: start

start: $(OBJ)
	@echo &quot;......................................................................&quot;
	@echo &quot;linking ...&quot;
	$(MINGW_BIN) -ID:\lib\MinGW\include -LD:\lib\MinGW\lib  -lopengl32 -lglu32 -lglew32 -lSDL -mwindows -Wall -o $(OUTPUT_BIN) $(OBJ)

%.o: %.cpp *.h
	@echo &quot;-----------------------------------------------------------------------&quot;
	@echo &quot;compiling $&lt; ...&quot;
	$(MINGW_BIN) -ID:\lib\MinGW\include -LD:\lib\MinGW\lib -mwindows -Wall -c -o $@ $&lt;

clean:
	@rm -fv *.o

distclean: clean
	@rm -fv $(OUTPUT_BIN)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1805102</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1805102</guid><dc:creator><![CDATA[theprogrammer12]]></dc:creator><pubDate>Sun, 08 Nov 2009 11:43:27 GMT</pubDate></item><item><title><![CDATA[Reply to error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope on Sat, 19 Dec 2009 19:05:39 GMT]]></title><description><![CDATA[<p>bump</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1825079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1825079</guid><dc:creator><![CDATA[theprogrammer12]]></dc:creator><pubDate>Sat, 19 Dec 2009 19:05:39 GMT</pubDate></item><item><title><![CDATA[Reply to error: &#96;GL_TEXTURE0_ARB&#x27; was not declared in this scope on Sun, 20 Dec 2009 12:20:20 GMT]]></title><description><![CDATA[<p>Wie der Physiklehrer eines Freundes gepflegt zu sagen:<br />
&quot;Einmal reicht!&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1825294</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1825294</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 20 Dec 2009 12:20:20 GMT</pubDate></item></channel></rss>