Visual Studio build error

Asked

Viewed 303 times

0

I am very new in Visual Studio, I am trying to compile a server and returns me thousands of errors similar to these:

1>int_guild.obj : error LNK2019: unresolved external symbol _strtoi64 referenced in function inter_guild_exp_parse_row
1>libcmtd.lib(_init_.obj) : error LNK2019: unresolved external symbol _CrtDbgReport referenced in function _CRT_RTC_INIT
1>libcmtd.lib(_init_.obj) : error LNK2019: unresolved external symbol _CrtDbgReportW referenced in function _CRT_RTC_INITW
1>libcmtd.lib(exe_main.obj) : error LNK2019: unresolved external symbol _seh_filter_exe referenced in function "int `int __cdecl __scrt_common_main_seh(void)'::`1'::filt$0" (?filt$0@?0??__scrt_common_main_seh@@YAHXZ@4HA)
1>libcmtd.lib(exe_main.obj) : error LNK2019: unresolved external symbol _set_app_type referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmtd.lib(exe_main.obj) : error LNK2019: unresolved external symbol __setusermatherr referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmtd.lib(exe_main.obj) : error LNK2019: unresolved external symbol _configure_narrow_argv referenced in function "public: static int __cdecl __scrt_narrow_argv_policy::configure_argv(void)" (?configure_argv@__scrt_narrow_argv_policy@@SAHXZ)
1>libcmtd.lib(exe_main.obj) : error LNK2019: unresolved external symbol _initialize_narrow_environment referenced in function "void __cdecl initialize_environment(void)" (?initialize_environment@@YAXXZ)
1>libcmtd.lib(utility.obj) : error LNK2001: unresolved external symbol _initialize_narrow_environment

Does anyone know or have any idea what it might be?

  • It is probably missing to specify a file that has these symbols and that are being used in your code, directly or indirectly. Anyway it would be good to read it to better understand what you are working on: http://answall.com/q/101691/101

  • @bigown is a server of a game, I know more of Java, I honestly do not know what to do.

  • 1

    Most likely because he wants to build the house without laying the foundation. It always gets complicated.

  • 1

    This is not exactly a compiler error: this is a Linker. The code you have references the reported functions, but the Linker cannot find them in the installed libraries to which he has access. Solution: Find out what library(s) these functions are in and make the Linker work with her(s). For example, when you use the function printf() the Linker knows where to find her (no, not in <stdio.h> which is just a header).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.