<?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[Linker Prob]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe ein kleines Problem. Ich habe mir eine class BMP geschrieben. Hier die Header:</p>
<pre><code class="language-cpp">#ifndef FIBS_H
#define FIBS_H

class BMP{
private:
	GLuint	texture[1];
	AUX_RGBImageRec *LoadBMP(char *Filename);
public:
	BMP(void);
	int LoadGLTextures(void);
	GLuint getTextur(void);
	~BMP(void);
};

#endif
</code></pre>
<p>Und das ist die cpp:</p>
<pre><code class="language-cpp">#include &quot;header.h&quot;
#include &quot;BMP.h&quot;

GLuint	texture[1];			// Storage For One Texture ( NEW )

AUX_RGBImageRec *BMP::LoadBMP(char *Filename){				// Loads A Bitmap Image
	FILE *File=NULL;									// File Handle
	if (!Filename)										// Make Sure A Filename Was Given
		return NULL;									// If Not Return NULL
	File=fopen(Filename,&quot;r&quot;);							// Check To See If The File Exists
	if (File){											// Does The File Exist?
		fclose(File);									// Close The Handle
		return auxDIBImageLoad(Filename);				// Load The Bitmap And Return A Pointer
	}
	return NULL;										// If Load Failed Return NULL
}

BMP::BMP(void){
}

int BMP::LoadGLTextures(void){									// Load Bitmaps And Convert To Textures
	int Status=FALSE;									// Status Indicator
	AUX_RGBImageRec *TextureImage[1];					// Create Storage Space For The Texture
	memset(TextureImage,0,sizeof(void *)*1);           	// Set The Pointer To NULL
	// Load The Bitmap, Check For Errors, If Bitmap's Not Found Quit
	if (TextureImage[0]=LoadBMP(&quot;Data/NeHe.bmp&quot;)){
		Status=TRUE;									// Set The Status To TRUE
		glGenTextures(1, &amp;texture[0]);					// Create The Texture
		// Typical Texture Generation Using Data From The Bitmap
		glBindTexture(GL_TEXTURE_2D, texture[0]);
		glTexImage2D(GL_TEXTURE_2D, 0, 3, TextureImage[0]-&gt;sizeX, TextureImage[0]-&gt;sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]-&gt;data);
		glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
		glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
	}
	if (TextureImage[0]){									// If Texture Exists
		if (TextureImage[0]-&gt;data){							// If Texture Image Exists
			free(TextureImage[0]-&gt;data);					// Free The Texture Image Memory
		}
		free(TextureImage[0]);								// Free The Image Structure
	}
	return Status;										// Return The Status
}

GLuint BMP::getTextur(void){
	return this-&gt;texture[0];
}

BMP::~BMP(void){
}
</code></pre>
<p>leider bekomm ich ein fehler:<br />
Verknüpfen...<br />
BMP.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_auxDIBImageLoadA@4&quot; in Funktion &quot;&quot;private: struct _AUX_RGBImageRec * __thiscall BMP::LoadBMP(char *)&quot; (?LoadBMP@BMP@@AAEPAU_AUX_RGBImageRec@@PAD@Z)&quot;.<br />
D:\Eigene Dateien\VISUAL STUDIO 2005\PROJECTS\Open GL\Debug\Aquarium.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
<p>Kann mir jemand helfen??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/183844/linker-prob</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 10:28:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/183844.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Jun 2007 12:28:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linker Prob on Sat, 09 Jun 2007 12:28:10 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe ein kleines Problem. Ich habe mir eine class BMP geschrieben. Hier die Header:</p>
<pre><code class="language-cpp">#ifndef FIBS_H
#define FIBS_H

class BMP{
private:
	GLuint	texture[1];
	AUX_RGBImageRec *LoadBMP(char *Filename);
public:
	BMP(void);
	int LoadGLTextures(void);
	GLuint getTextur(void);
	~BMP(void);
};

#endif
</code></pre>
<p>Und das ist die cpp:</p>
<pre><code class="language-cpp">#include &quot;header.h&quot;
#include &quot;BMP.h&quot;

GLuint	texture[1];			// Storage For One Texture ( NEW )

AUX_RGBImageRec *BMP::LoadBMP(char *Filename){				// Loads A Bitmap Image
	FILE *File=NULL;									// File Handle
	if (!Filename)										// Make Sure A Filename Was Given
		return NULL;									// If Not Return NULL
	File=fopen(Filename,&quot;r&quot;);							// Check To See If The File Exists
	if (File){											// Does The File Exist?
		fclose(File);									// Close The Handle
		return auxDIBImageLoad(Filename);				// Load The Bitmap And Return A Pointer
	}
	return NULL;										// If Load Failed Return NULL
}

BMP::BMP(void){
}

int BMP::LoadGLTextures(void){									// Load Bitmaps And Convert To Textures
	int Status=FALSE;									// Status Indicator
	AUX_RGBImageRec *TextureImage[1];					// Create Storage Space For The Texture
	memset(TextureImage,0,sizeof(void *)*1);           	// Set The Pointer To NULL
	// Load The Bitmap, Check For Errors, If Bitmap's Not Found Quit
	if (TextureImage[0]=LoadBMP(&quot;Data/NeHe.bmp&quot;)){
		Status=TRUE;									// Set The Status To TRUE
		glGenTextures(1, &amp;texture[0]);					// Create The Texture
		// Typical Texture Generation Using Data From The Bitmap
		glBindTexture(GL_TEXTURE_2D, texture[0]);
		glTexImage2D(GL_TEXTURE_2D, 0, 3, TextureImage[0]-&gt;sizeX, TextureImage[0]-&gt;sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]-&gt;data);
		glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
		glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
	}
	if (TextureImage[0]){									// If Texture Exists
		if (TextureImage[0]-&gt;data){							// If Texture Image Exists
			free(TextureImage[0]-&gt;data);					// Free The Texture Image Memory
		}
		free(TextureImage[0]);								// Free The Image Structure
	}
	return Status;										// Return The Status
}

GLuint BMP::getTextur(void){
	return this-&gt;texture[0];
}

BMP::~BMP(void){
}
</code></pre>
<p>leider bekomm ich ein fehler:<br />
Verknüpfen...<br />
BMP.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_auxDIBImageLoadA@4&quot; in Funktion &quot;&quot;private: struct _AUX_RGBImageRec * __thiscall BMP::LoadBMP(char *)&quot; (?LoadBMP@BMP@@AAEPAU_AUX_RGBImageRec@@PAD@Z)&quot;.<br />
D:\Eigene Dateien\VISUAL STUDIO 2005\PROJECTS\Open GL\Debug\Aquarium.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
<p>Kann mir jemand helfen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1301953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1301953</guid><dc:creator><![CDATA[Sw00sh]]></dc:creator><pubDate>Sat, 09 Jun 2007 12:28:10 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Prob on Sat, 09 Jun 2007 12:38:06 GMT]]></title><description><![CDATA[<p>das bedeutet, dass der linker keine definition für auxDIBImageLoad finden kann. Ich denke mal, du musst glaux.lib dazulinken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1301960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1301960</guid><dc:creator><![CDATA[Maxi]]></dc:creator><pubDate>Sat, 09 Jun 2007 12:38:06 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Prob on Sat, 09 Jun 2007 12:52:48 GMT]]></title><description><![CDATA[<p>und wie geht das... ich bin java gewöhnt <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>
<p>Danke aber schon mal für die schnelle Antowort</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1301969</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1301969</guid><dc:creator><![CDATA[Sw00sh]]></dc:creator><pubDate>Sat, 09 Jun 2007 12:52:48 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Prob on Sat, 09 Jun 2007 13:49:05 GMT]]></title><description><![CDATA[<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1302000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1302000</guid><dc:creator><![CDATA[Sw00sh]]></dc:creator><pubDate>Sat, 09 Jun 2007 13:49:05 GMT</pubDate></item></channel></rss>