Page 1 of 1
Error LNK2019, 2001 & 1120
Posted: Fri Sep 05, 2014 6:05 pm
by sticky
Hey all!
I use to play on and build/update a lan server for me and a few friends.
We broke away to play FFXIV for a while and are now ready to come back to FFXI Laning, and I can't seem to get to server to build...
I've checked the wiki and it seems all the guilds are still for 2010/2012 and the code requires 2013.
I've updated to 2013 and have everything that I can think of setup but am getting a bunch of LNKxxxx errors.
I'm sure I'm just missing something simple...
Building on an Update to date windows 7 system.
Thanks!
Re: Error LNK2019, 2001 & 1120
Posted: Fri Sep 05, 2014 7:35 pm
by kjLotus
i don't think any of the guides mention 2010/2012 anymore, are you sure you're reading the right guide?
https://wiki.dspt.info/index.php/Building_the_Server ?
Re: Error LNK2019, 2001 & 1120
Posted: Fri Sep 05, 2014 7:39 pm
by sticky
Looks like I was seeing a cached version of the wiki...
Don't see anything that I haven't done though...
Everything I need is installed and up to date, and I moved the SQL dev pack over to the new 2013 directories...
Here's what I'm getting:
Code: Select all
Error 1 error LNK2019: unresolved external symbol __imp__GetStdHandle@4 referenced in function "int __cdecl _vShowMessage(enum MSGTYPE,char const *,char *)" (?_vShowMessage@@YAHW4MSGTYPE@@PBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 2 error LNK2019: unresolved external symbol __imp__GetFileType@4 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 3 error LNK2019: unresolved external symbol __imp__WriteFile@20 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 4 error LNK2019: unresolved external symbol __imp__FillConsoleOutputCharacterA@20 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 5 error LNK2019: unresolved external symbol __imp__FillConsoleOutputAttribute@20 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 6 error LNK2019: unresolved external symbol __imp__GetConsoleScreenBufferInfo@8 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 7 error LNK2019: unresolved external symbol __imp__SetConsoleCursorPosition@8 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 8 error LNK2019: unresolved external symbol __imp__SetConsoleTextAttribute@8 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 9 error LNK2019: unresolved external symbol __imp__WriteConsoleA@20 referenced in function "int __cdecl VFPRINTF(void *,char const *,char *)" (?VFPRINTF@@YAHPAXPBDPAD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\showmsg.obj DSGame-server
Error 10 error LNK2019: unresolved external symbol __imp__GetTickCount@0 referenced in function "unsigned int __cdecl tick(void)" (?tick@@YAIXZ) V:\DSP_Sep2014\trunk\win32\DSGame-server\timer.obj DSGame-server
Error 11 error LNK2019: unresolved external symbol __imp__EncodePointer@4 referenced in function ___atonexitinit V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(atonexit.obj) DSGame-server
Error 12 error LNK2001: unresolved external symbol __imp__EncodePointer@4 V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(crtexe.obj) DSGame-server
Error 13 error LNK2019: unresolved external symbol __imp__DecodePointer@4 referenced in function __onexit V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(atonexit.obj) DSGame-server
Error 14 error LNK2019: unresolved external symbol __imp__IsDebuggerPresent@0 referenced in function ___raise_securityfailure V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(gs_report.obj) DSGame-server
Error 15 error LNK2001: unresolved external symbol __imp__IsDebuggerPresent@0 V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(error.obj) DSGame-server
Error 16 error LNK2019: unresolved external symbol _IsProcessorFeaturePresent@4 referenced in function ___report_gsfailure V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(gs_report.obj) DSGame-server
Error 17 error LNK2001: unresolved external symbol _IsProcessorFeaturePresent@4 V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(cpu_disp.obj) DSGame-server
Error 18 error LNK2019: unresolved external symbol __imp__RaiseException@16 referenced in function "int __cdecl DebuggerProbe(unsigned long)" (?DebuggerProbe@@YAHK@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(error.obj) DSGame-server
Error 19 error LNK2019: unresolved external symbol __imp__GetLastError@0 referenced in function "void __cdecl _RTC_AllocaFailure(void *,struct _RTC_ALLOCA_NODE *,int)" (?_RTC_AllocaFailure@@YAXPAXPAU_RTC_ALLOCA_NODE@@H@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(error.obj) DSGame-server
Error 20 error LNK2001: unresolved external symbol __imp__GetLastError@0 V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 21 error LNK2019: unresolved external symbol __imp__GetProcAddress@8 referenced in function "void __cdecl _RTC_AllocaFailure(void *,struct _RTC_ALLOCA_NODE *,int)" (?_RTC_AllocaFailure@@YAXPAXPAU_RTC_ALLOCA_NODE@@H@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(error.obj) DSGame-server
Error 22 error LNK2001: unresolved external symbol __imp__GetProcAddress@8 V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 23 error LNK2019: unresolved external symbol __imp__LoadLibraryExW@12 referenced in function "void __cdecl _RTC_AllocaFailure(void *,struct _RTC_ALLOCA_NODE *,int)" (?_RTC_AllocaFailure@@YAXPAXPAU_RTC_ALLOCA_NODE@@H@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(error.obj) DSGame-server
Error 24 error LNK2001: unresolved external symbol __imp__LoadLibraryExW@12 V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 25 error LNK2019: unresolved external symbol __imp__MultiByteToWideChar@24 referenced in function "void __cdecl failwithmessage(void *,int,int,char const *)" (?failwithmessage@@YAXPAXHHPBD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(error.obj) DSGame-server
Error 26 error LNK2019: unresolved external symbol __imp__WideCharToMultiByte@32 referenced in function "void __cdecl failwithmessage(void *,int,int,char const *)" (?failwithmessage@@YAXPAXHHPBD@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(error.obj) DSGame-server
Error 27 error LNK2019: unresolved external symbol __imp__HeapAlloc@12 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 28 error LNK2019: unresolved external symbol __imp__HeapFree@12 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 29 error LNK2019: unresolved external symbol __imp__GetProcessHeap@0 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 30 error LNK2019: unresolved external symbol __imp__VirtualQuery@12 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 31 error LNK2019: unresolved external symbol __imp__FreeLibrary@4 referenced in function "struct HINSTANCE__ * __cdecl GetPdbDllFromInstallPath(void)" (?GetPdbDllFromInstallPath@@YAPAUHINSTANCE__@@XZ) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 32 error LNK2019: unresolved external symbol __imp__GetModuleFileNameW@12 referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPAUHINSTANCE__@@XZ) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 33 error LNK2019: unresolved external symbol __imp__GetModuleHandleW@4 referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPAUHINSTANCE__@@XZ) V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(pdblkup.obj) DSGame-server
Error 34 error LNK2019: unresolved external symbol __imp__QueryPerformanceCounter@4 referenced in function ___security_init_cookie V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(gs_support.obj) DSGame-server
Error 35 error LNK2019: unresolved external symbol __imp__GetCurrentProcessId@0 referenced in function ___security_init_cookie V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(gs_support.obj) DSGame-server
Error 36 error LNK2019: unresolved external symbol __imp__GetCurrentThreadId@0 referenced in function ___security_init_cookie V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(gs_support.obj) DSGame-server
Error 37 error LNK2019: unresolved external symbol __imp__GetSystemTimeAsFileTime@4 referenced in function ___security_init_cookie V:\DSP_Sep2014\trunk\win32\DSGame-server\MSVCRTD.lib(gs_support.obj) DSGame-server
Error 38 error LNK1120: 31 unresolved externals V:\DSP_Sep2014\trunk\DSGame-server.exe DSGame-server
Re: Error LNK2019, 2001 & 1120
Posted: Fri Sep 05, 2014 11:07 pm
by sticky
Still have no idea why it won't build on my main system.
But I got the server built and running.
I made a Windows 7 VM installed everything the exact same why I did on my main system and everything worked fine. XD
Re: Error LNK2019, 2001 & 1120
Posted: Sat Sep 06, 2014 12:47 pm
by atom0s
Sounds like your install of Visual Studio is broken. Or you are missing the proper SDK for Windows. Try reinstalling Visual Studio.
Re: Error LNK2019, 2001 & 1120
Posted: Sat Sep 06, 2014 6:04 pm
by sticky
Tried reinstalling it... and about a six dozen other things. XD
I Really don't have any idea at this point, so for now I'll just stick to use the VM to build the sever since I don't like messing with my main system too much, and its not like it takes any effect to start a VM once in a while to update things.
I can build the old DSP code I have form November 2013 just fine, along with a number of other projects.
Just for some reason it dose not like the current code base of DSP. (Random glitch? XD)