Compile error!

anaza70056

Member
Joined
Feb 22, 2014
Messages
20
Reaction score
1
Severity Code Description Project File Line Suppression State
Error LNK1120 17 unresolved externals Titan C:\Users\Ionut\Desktop\Titan (4) (1)\x64\Debug\Titan.exe 1
Error LNK2001 unresolved external symbol Main Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\LINK 1
Error LNK2019 unresolved external symbol memset referenced in function "void __cdecl DX_Init(unsigned long *)" (?DX_Init@@YAXPEAK@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\main.obj 1
Error LNK2019 unresolved external symbol __imp___stdio_common_vsprintf_s referenced in function _vsprintf_s_l Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\main.obj 1
Error LNK2019 unresolved external symbol DetourFunction referenced in function "unsigned long __cdecl LoopFunction(void *)" (?LoopFunction@@YAKPEAX@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\main.obj 1
Error LNK2019 unresolved external symbol D3DXAssembleShader referenced in function "long __cdecl GenerateShader(struct IDirect3DDevice9 *,struct IDirect3DPixelShader9 * *,float,float,float,float)" (?GenerateShader@@YAJPEAUIDirect3DDevice9@@PEAPEAUIDirect3DPixelShader9@@MMMM@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\main.obj 1
Error LNK2019 unresolved external symbol _CrtDbgReport referenced in function _CRT_RTC_INIT Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(init.obj) 1
Error LNK2019 unresolved external symbol _CrtDbgReportW referenced in function _CRT_RTC_INITW Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(init.obj) 1
Error LNK2019 unresolved external symbol strcpy_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure@@YAXPEAXPEBD@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol strcat_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure@@YAXPEAXPEBD@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol __stdio_common_vsprintf_s referenced in function _vsprintf_s_l Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(error.obj) 1
Error LNK2001 unresolved external symbol __C_specific_handler_noexcept Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol _wmakepath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned __int64)" (?GetPdbDllPathFromFilePath@@YAHPEB_WPEA_W_K@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol _wsplitpath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned __int64)" (?GetPdbDllPathFromFilePath@@YAHPEB_WPEA_W_K@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol wcscpy_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned __int64)" (?GetPdbDllPathFromFilePath@@YAHPEB_WPEA_W_K@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __vcrt_GetModuleFileNameW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPEAUHINSTANCE__@@XZ) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __vcrt_GetModuleHandleW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPEAUHINSTANCE__@@XZ) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __vcrt_LoadLibraryExW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPEAUHINSTANCE__@@XZ) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(pdblkup.obj) 1
Warning LNK4272 library machine type 'x86' conflicts with target machine type 'x64' Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\detours.lib 1
Warning LNK4272 library machine type 'x86' conflicts with target machine type 'x64' Titan E:\vs\VC\Tools\MSVC\14.16.27023\lib\x64\d3dx9.lib 1
 

Ayamabi

Active member
Joined
Mar 8, 2018
Messages
169
Reaction score
111
Severity Code Description Project File Line Suppression State
Warning LNK4272 library machine type 'x86' conflicts with target machine type 'x64' Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\detours.lib 1
Warning LNK4272 library machine type 'x86' conflicts with target machine type 'x64' Titan E:\vs\VC\Tools\MSVC\14.16.27023\lib\x64\d3dx9.lib 1

for these two last warnings u need libs which are compatible with your x64 project
 

anaza70056

Member
Joined
Feb 22, 2014
Messages
20
Reaction score
1
Severity Code Description Project File Line Suppression State
Error LNK1120 3 unresolved externals Titan C:\Users\Ionut\Desktop\Titan (4) (1)\x64\Debug\Titan.asi 1
Error LNK2019 unresolved external symbol DetourFunction referenced in function "unsigned long __cdecl LoopFunction(void *)" (?LoopFunction@@YAKPEAX@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\main.obj 1
Error LNK2019 unresolved external symbol D3DXAssembleShader referenced in function "long __cdecl GenerateShader(struct IDirect3DDevice9 *,struct IDirect3DPixelShader9 * *,float,float,float,float)" (?GenerateShader@@YAJPEAUIDirect3DDevice9@@PEAPEAUIDirect3DPixelShader9@@MMMM@Z) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\main.obj 1
Error LNK2019 unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\MSVCRTD.lib(exe_main.obj) 1
Warning LNK4272 library machine type 'x86' conflicts with target machine type 'x64' Titan C:\Users\Ionut\Desktop\Titan (4) (1)\Titan\detours.lib 1
Warning LNK4272 library machine type 'x86' conflicts with target machine type 'x64' Titan E:\vs\VC\Tools\MSVC\14.16.27023\lib\x64\d3dx9.lib 1
 

nixxe

New member
Joined
Jun 22, 2019
Messages
4
Reaction score
3
Your library doesn't load headers so therefore the functions aren't externally declared.
 
Top