Archived

This topic is now archived and is closed to further replies.

UltimaX

Wierd Error (I'm Stumped, Never Seen This?)

Recommended Posts

Usually errors are no problem, but this is wierd. I have no clue why this error is being thrown. Here's the error:
Main.obj : error LNK2001: unresolved external symbol "public: static class EPSTEXTURESYSTEM * __cdecl EPSTEXTURESYSTEM::IDirectSoundFullDuplex(void)" (?IDirectSoundFullDuplex@EPSTEXTURESYSTEM@@SAPAV1@XZ)
Debug/EnviroPatch.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Here's the texture class:
  
//::|ññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññ|::

//::|ññ ---------------------------------------------------------------------------------- ññ|::

//::|ññ|			~ A R I E L   P R O D U C T I O N S ~                     |ññ|::

//::|ññ|                              ~ ALL RIGHTS RESERVED ~                            |ññ|::

//::|ññ ---------------------------------------------------------------------------------- ññ|::

//::|ññ| ~ PROGRAM DATA ~													      /-----/ |ññ|::

//::|ññ|							            								/-----/ | |ññ|::

//::|ññ| PROGRAMMER:: James Dougherty											| |   | | |ññ|::

//::|ññ| COPYRIGHT :: ©2003 Ariel Productions									| |   | | |ññ|::

//::|ññ| TYPE      :: Texture System											| /---|-/ |ññ|::

//::|ññ|																		/-----/   |ññ|::

//::|ññ ---------------------------------------------------------------------------------- ññ|::

//::|ññ| ~ SOURCE DATA ~																  |ññ|::

//::|ññ|																				  |ññ|::

//::|ññ| FILENAME :: EPS_TextureSystem.h 												  |ññ|::

//::|ññ| VERSION  :: 1.0																  |ññ|::

//::|ññ|																				  |ññ|::

//::|ññ| HISTORY DATA																	  |ññ|::

//::|ññ| | 																				  |ññ|::

//::|ññ| |-12.25.03 (JD)																  |ññ|::

//::|ññ| |-Initial Build																  |ññ|::

//::|ññ| |																				  |ññ|::

//::|ññ|																				  |ññ|::

//::|ññ| BUGS																			  |ññ|::

//::|ññ| |																				  |ññ|::

//::|ññ| |-N/A																			  |ññ|::

//::|ññ| |																				  |ññ|::

//::|ññ|																				  |ññ|::

//::|ññ ---------------------------------------------------------------------------------- ññ|::

//::|ññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññññ|::

//

#ifndef EPS_TEXTURESYSTEM_H
#define EPS_TEXTURESYSTEM_H
#include "EPS Engine\Definition\EPS_Definition.h"
//

struct EPSTEXTURE
{
	EPSuchar* Data;
	EPSint	  Width;
	EPSint	  Height;
	EPSint	  Channels;
	EPSbool   IsPowerOf2;
	EPSint    MemorySize;
	EPSint    BitsPerPixel;
	EPSint    NearestPowerX;
	EPSint    NearestPowerY;
};
//

class EPSTEXTURESYSTEM
{
private:
	EPSTEXTURESYSTEM();
	EPSvoid ResizeTexture(EPSTEXTURE* Texture, EPSint NewWidth, EPSint NewHeight);
//

private:
	EPSTEXTURE* LoadTGA(EPScrptr Filename);
	EPSTEXTURE* LoadBMP(EPScrptr Filename, BITMAPINFOHEADER *HeaderInfo);
	EPSvoid	    SaveTGA(EPScrptr Filename, EPSint Width, EPSint Height, EPSuchar *PixelData);
	EPSvoid	    SaveBMP(EPScrptr Filename, EPSint Width, EPSint Height, EPSint Channels, EPSuchar *PixelData);
//

public:
	virtual ~EPSTEXTURESYSTEM();
	static EPSTEXTURESYSTEM* INTERFACE(EPSvoid);
//

public:
	EPSTEXTURE  CreateTexture(EPScrptr Filename);
	EPSTEXTURE  CreateTexture(EPSint Width, EPSint Height, EPSint Channels, EPSuchar* Data);
	EPSTEXTURE& CreateErrorTexture(EPSint Width, EPSint Height, EPScrptr ErrorMessage, ...);
	EPSvoid     DeleteTexture(EPSTEXTURE* Texture);
//

public:
	EPSvoid	SaveTextureImage(EPScrptr Filename, EPSTEXTURE& Texture);
	EPSvoid SaveTextureImage(EPScrptr Filename, EPSint Width, EPSint Height, EPSint Channels, EPSuchar* Data);
};
//

#define GEPSTEXTURESYSTEM EPSTEXTURESYSTEM::INTERFACE()
//

#endif //--EPS_TEXTURESYSTEM_H

Now why in the world would it throw that error if my texture class has nothing to do with the sound system? The sound system is in a dll, but I never had this problem when I created other dlls? Any help would be greatful. Thanks everyone, -UltimaX- "You wished for a white christmas... Now go shovel your wishes!" [edited by - UltimaX on January 4, 2004 1:14:39 PM]

Share this post


Link to post
Share on other sites
Thanks a lot Endurion, I renamed it to TSINTERFACE and it worked fine.

Thanks!

-UltimaX-

"You wished for a white christmas... Now go shovel your wishes!"

Share this post


Link to post
Share on other sites