Need Help Compiling (Windows)

This is for people involved in the developement of Snes9x, or SNES emulators in general.
BUG REPORTS BELONG IN TECH SUPPORT/BUG TRACKING!
Post Reply
PrgmrAtHart
Snes9x White Belt
Posts: 2
Joined: Thu Nov 24, 2016 7:12 am

Need Help Compiling (Windows)

Post by PrgmrAtHart » Thu Nov 24, 2016 7:16 am

I am trying to build Snes9x 1.54.1 for windows and I'm getting these errors:

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Warning	LNK4075	ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\libpngdmt.lib(png.obj)	1	
Warning	LNK4199	/DELAYLOAD:fmod.dll ignored; no imports found from fmod.dll	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\LINK	1	
Error	LNK2019	unresolved external symbol "char * __cdecl ReadShaderFileContents(wchar_t const *)" (?ReadShaderFileContents@@YAPADPB_W@Z) referenced in function "public: bool __thiscall CD3DCG::LoadShader(wchar_t const *)" (?LoadShader@CD3DCG@@QAE_NPB_W@Z)	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\CD3DCG.obj	1	
Error	LNK2001	unresolved external symbol "char * __cdecl ReadShaderFileContents(wchar_t const *)" (?ReadShaderFileContents@@YAPADPB_W@Z)	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\CGLCG.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl ReduceToPath(wchar_t *)" (?ReduceToPath@@YAXPA_W@Z) referenced in function "public: bool __thiscall CD3DCG::LoadShader(wchar_t const *)" (?LoadShader@CD3DCG@@QAE_NPB_W@Z)	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\CD3DCG.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl ReduceToPath(wchar_t *)" (?ReduceToPath@@YAXPA_W@Z)	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\CGLCG.obj	1	
Error	LNK2019	unresolved external symbol "wchar_t const * __cdecl S9xGetDirectoryT(enum s9x_getdirtype)" (?S9xGetDirectoryT@@YAPB_WW4s9x_getdirtype@@@Z) referenced in function "private: bool __thiscall CDirect3D::SetShaderHLSL(wchar_t const *)" (?SetShaderHLSL@CDirect3D@@AAE_NPB_W@Z)	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\CDirect3D.obj	1	
Error	LNK1120	3 unresolved externals	Snes9X	C:\Users\Matthew\Desktop\snes9x-1.54.1.tar\snes9x-1.54.1\win32\snes9x-debug.exe	1	
I would appreciate assistance with this.

User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Need Help Compiling (Windows)

Post by OV2 » Thu Nov 24, 2016 5:59 pm

The messages look like you've compiled some files with unicode defined, some others without. Can you do a clean / build and tell me which configuration you are building?

PrgmrAtHart
Snes9x White Belt
Posts: 2
Joined: Thu Nov 24, 2016 7:12 am

Re: Need Help Compiling (Windows)

Post by PrgmrAtHart » Thu Nov 24, 2016 8:43 pm

I am building "Debug Win32". Also, Cleaning and rebuilding did the trick! Thanks!

Post Reply