Main.exe : fatal error LNK1120: 109 unresolved externals

484 views
Skip to first unread message

Nagaraj Kharvi

unread,
Jan 1, 2016, 9:24:10 PM1/1/16
to Haxe
Please help me to resolve below error in haxe.

LIBCMT.lib(getqloc.obj) : error LNK2001: unresolved external symbol __imp__GetLocaleInfoW@16
LIBCMT.lib(cpu_disp.obj) : error LNK2019: unresolved external symbol __imp__IsProcessorFeaturePresent@4 referenced in function ___sse2_available_init
LIBCMT.lib(_mathfcns_.obj) : error LNK2001: unresolved external symbol __imp__IsProcessorFeaturePresent@4
LIBCMT.lib(heapinit.obj) : error LNK2019: unresolved external symbol __imp__HeapCreate@12 referenced in function __heap_init
LIBCMT.lib(heapinit.obj) : error LNK2019: unresolved external symbol __imp__HeapDestroy@4 referenced in function __heap_term
LIBCMT.lib(mlock.obj) : error LNK2019: unresolved external symbol __imp__FatalAppExitA@8 referenced in function __lockerr_exit
LIBCMT.lib(winsig.obj) : error LNK2019: unresolved external symbol __imp__SetConsoleCtrlHandler@8 referenced in function _signal
LIBCMT.lib(rand_s.obj) : error LNK2019: unresolved external symbol __imp__InterlockedExchange@8 referenced in function _rand_s
LIBCMT.lib(setmode.obj) : error LNK2001: unresolved external symbol __imp__InterlockedExchange@8
LIBCMT.lib(ioinit.obj) : error LNK2019: unresolved external symbol __imp__SetHandleCount@4 referenced in function __ioinit
LIBCMT.lib(ioinit.obj) : error LNK2019: unresolved external symbol __imp__GetStartupInfoW@4 referenced in function __ioinit
LIBCMT.lib(crtheap.obj) : error LNK2019: unresolved external symbol __imp__Sleep@4 referenced in function _wait_a_bit
LIBCMT.lib(msize.obj) : error LNK2019: unresolved external symbol __imp__HeapSize@12 referenced in function __msize
LIBCMT.lib(wctomb.obj) : error LNK2001: unresolved external symbol __imp__WideCharToMultiByte@32
LIBCMT.lib(a_loc.obj) : error LNK2001: unresolved external symbol __imp__WideCharToMultiByte@32
LIBCMT.lib(write.obj) : error LNK2001: unresolved external symbol __imp__WideCharToMultiByte@32
LIBCMT.lib(tzset.obj) : error LNK2019: unresolved external symbol __imp__WideCharToMultiByte@32 referenced in function __tzset_nolock
LIBCMT.lib(wtombenv.obj) : error LNK2001: unresolved external symbol __imp__WideCharToMultiByte@32
LIBCMT.lib(a_map.obj) : error LNK2001: unresolved external symbol __imp__WideCharToMultiByte@32
LIBCMT.lib(a_env.obj) : error LNK2001: unresolved external symbol __imp__WideCharToMultiByte@32
LIBCMT.lib(tzset.obj) : error LNK2019: unresolved external symbol __imp__GetTimeZoneInformation@4 referenced in function __tzset_nolock
LIBCMT.lib(mbctype.obj) : error LNK2019: unresolved external symbol __imp__GetCPInfo@8 referenced in function "void __cdecl setSBUpLow(struct threadmbcinfostruct *)" (?setSBUpLow@@YAXPAUthreadmbcinfostruct@@@Z)
LIBCMT.lib(initctyp.obj) : error LNK2001: unresolved external symbol __imp__GetCPInfo@8
LIBCMT.lib(a_cmp.obj) : error LNK2001: unresolved external symbol __imp__GetCPInfo@8
LIBCMT.lib(mbctype.obj) : error LNK2019: unresolved external symbol __imp__GetACP@0 referenced in function "int __cdecl getSystemCP(int)" (?getSystemCP@@YAHH@Z)
LIBCMT.lib(getqloc.obj) : error LNK2001: unresolved external symbol __imp__GetACP@0
LIBCMT.lib(mbctype.obj) : error LNK2019: unresolved external symbol __imp__GetOEMCP@0 referenced in function "int __cdecl getSystemCP(int)" (?getSystemCP@@YAHH@Z)
LIBCMT.lib(mbctype.obj) : error LNK2019: unresolved external symbol __imp__IsValidCodePage@4 referenced in function __setmbcp_nolock
LIBCMT.lib(getqloc.obj) : error LNK2001: unresolved external symbol __imp__IsValidCodePage@4
LIBCMT.lib(fullpath.obj) : error LNK2019: unresolved external symbol __imp__GetFullPathNameA@16 referenced in function __fullpath
LIBCMT.lib(getcwd.obj) : error LNK2001: unresolved external symbol __imp__GetFullPathNameA@16
LIBCMT.lib(fstati32.obj) : error LNK2019: unresolved external symbol __imp__GetFileInformationByHandle@8 referenced in function __fstat64i32
LIBCMT.lib(fstat.obj) : error LNK2001: unresolved external symbol __imp__GetFileInformationByHandle@8
LIBCMT.lib(fstati32.obj) : error LNK2019: unresolved external symbol __imp__PeekNamedPipe@24 referenced in function __fstat64i32
LIBCMT.lib(fstat.obj) : error LNK2001: unresolved external symbol __imp__PeekNamedPipe@24
LIBCMT.lib(open.obj) : error LNK2019: unresolved external symbol __imp__CreateFileA@28 referenced in function __tsopen_nolock
LIBCMT.lib(drive.obj) : error LNK2019: unresolved external symbol __imp__GetCurrentDirectoryW@8 referenced in function __getdrive
LIBCMT.lib(drive.obj) : error LNK2019: unresolved external symbol __imp__SetCurrentDirectoryW@4 referenced in function __chdrive
LIBCMT.lib(mbtowc.obj) : error LNK2001: unresolved external symbol __imp__MultiByteToWideChar@24
LIBCMT.lib(read.obj) : error LNK2019: unresolved external symbol __imp__MultiByteToWideChar@24 referenced in function __read_nolock
LIBCMT.lib(a_map.obj) : error LNK2001: unresolved external symbol __imp__MultiByteToWideChar@24
LIBCMT.lib(a_str.obj) : error LNK2001: unresolved external symbol __imp__MultiByteToWideChar@24
LIBCMT.lib(a_cmp.obj) : error LNK2001: unresolved external symbol __imp__MultiByteToWideChar@24
LIBCMT.lib(read.obj) : error LNK2019: unresolved external symbol __imp__ReadFile@20 referenced in function __read_nolock
LIBCMT.lib(a_map.obj) : error LNK2019: unresolved external symbol __imp__LCMapStringW@24 referenced in function "int __cdecl __crtLCMapStringA_stat(struct localeinfo_struct *,unsigned long,unsigned long,char const *,int,char *,int,int,int)" (?__crtLCMapStringA_stat@@YAHPAUlocaleinfo_struct@@KKPBDHPADHHH@Z)
LIBCMT.lib(w_map.obj) : error LNK2001: unresolved external symbol __imp__LCMapStringW@24
LIBCMT.lib(stdargv.obj) : error LNK2019: unresolved external symbol __imp__GetModuleFileNameA@12 referenced in function __setargv
LIBCMT.lib(a_env.obj) : error LNK2019: unresolved external symbol __imp__FreeEnvironmentStringsW@4 referenced in function ___crtGetEnvironmentStringsA
LIBCMT.lib(a_env.obj) : error LNK2019: unresolved external symbol __imp__GetEnvironmentStringsW@0 referenced in function ___crtGetEnvironmentStringsA
LIBCMT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetTickCount@0 referenced in function ___security_init_cookie
LIBCMT.lib(write.obj) : error LNK2019: unresolved external symbol __imp__GetConsoleCP@0 referenced in function __write_nolock
LIBCMT.lib(write.obj) : error LNK2019: unresolved external symbol __imp__GetConsoleMode@8 referenced in function __write_nolock
LIBCMT.lib(commit.obj) : error LNK2019: unresolved external symbol __imp__FlushFileBuffers@4 referenced in function __commit
LIBCMT.lib(a_str.obj) : error LNK2019: unresolved external symbol __imp__GetStringTypeW@16 referenced in function "int __cdecl __crtGetStringTypeA_stat(struct localeinfo_struct *,unsigned long,char const *,int,unsigned short *,int,int,int)" (?__crtGetStringTypeA_stat@@YAHPAUlocaleinfo_struct@@KPBDHPAGHHH@Z)
LIBCMT.lib(iswctype.obj) : error LNK2001: unresolved external symbol __imp__GetStringTypeW@16
LIBCMT.lib(a_cmp.obj) : error LNK2019: unresolved external symbol __imp__CompareStringW@24 referenced in function "int __cdecl __crtCompareStringA_stat(struct localeinfo_struct *,unsigned long,unsigned long,char const *,int,char const *,int,int)" (?__crtCompareStringA_stat@@YAHPAUlocaleinfo_struct@@KKPBDH1HH@Z)
LIBCMT.lib(setenv.obj) : error LNK2019: unresolved external symbol __imp__SetEnvironmentVariableA@8 referenced in function ___crtsetenv
LIBCMT.lib(getcwd.obj) : error LNK2019: unresolved external symbol __imp__GetDriveTypeW@4 referenced in function __validdrive
LIBCMT.lib(lseeki64.obj) : error LNK2019: unresolved external symbol __imp__SetFilePointer@16 referenced in function __lseeki64_nolock
LIBCMT.lib(lseek.obj) : error LNK2001: unresolved external symbol __imp__SetFilePointer@16
LIBCMT.lib(chsize.obj) : error LNK2019: unresolved external symbol __imp__SetEndOfFile@4 referenced in function __chsize_nolock
LIBCMT.lib(chsize.obj) : error LNK2019: unresolved external symbol __imp__GetProcessHeap@0 referenced in function __chsize_nolock
LIBCMT.lib(wopen.obj) : error LNK2019: unresolved external symbol __imp__CreateFileW@28 referenced in function __tsopen_nolock
LIBCMT.lib(initcon.obj) : error LNK2001: unresolved external symbol __imp__CreateFileW@28
LIBCMT.lib(getqloc.obj) : error LNK2019: unresolved external symbol __imp__GetUserDefaultLCID@0 referenced in function _GetLcidFromDefault
LIBCMT.lib(getqloc.obj) : error LNK2019: unresolved external symbol __imp__GetLocaleInfoA@16 referenced in function _CountryEnumProc@4
LIBCMT.lib(getqloc.obj) : error LNK2019: unresolved external symbol __imp__EnumSystemLocalesA@8 referenced in function _GetLcidFromCountry
LIBCMT.lib(getqloc.obj) : error LNK2019: unresolved external symbol __imp__IsValidLocale@8 referenced in function ___get_qualified_locale
LIBCMT.lib(putwch.obj) : error LNK2019: unresolved external symbol __imp__WriteConsoleW@20 referenced in function __putwch_nolock
Main.exe : fatal error LNK1120: 109 unresolved externals
Error: error running link.exe -out:Main.exe -nologo -machine:x86 -subsystem:console,5.01 -libpath:lib user32.lib @C:/Users/nagaraj/Documents/Cpp/bin/obj/msvc16xp/all_objs

Not able to understand why linker throwing this in flashdevelop.

Hugh

unread,
Jan 3, 2016, 11:35:44 PM1/3/16
to Haxe
That seems a little strange - like it is using a wrong library from somewhere.
I notice that it refers to msvc16 - is it possible to upgrade the latest visual studio community (free)  version?  This would probably solve the problem one way or another.

Hugh
Reply all
Reply to author
Forward
0 new messages