flat assembler
Message board for the users of flat assembler.
Index
> Windows > public funcs in coff or how to export dll funcs in coff file |
Author |
|
revolution 06 Jul 2011, 05:00
Different linkers require different ways of formatting the exports names. Some use a simple _func@0 format where the @0 specifies the number of arguments pushed (0 bytes pushed). Some use mangled names (google it) and those can get very very confusing. Anyhow try this first:
Code: public _func as '_func@0' |
|||
06 Jul 2011, 05:00 |
|
vid 06 Jul 2011, 08:52
The "@0" part is required for stdcall functions only (those which remove arguments from stack). For cdecl functions (default in C), you only need "_func". If you compile your code as C++ code, you also need to specify [i]extern "C"[i] in declaration to disable C++ name mangling.
Your talk about "exporting DLL function from COFF" makes no sense. COFF .obj can make some symbol public, and then later when linking you can export such symbol. But the way you formulated it, it doesn't make sense. PS: Didn't you mean "jmp [p_func]" instead of "jmp [_func]"? |
|||
06 Jul 2011, 08:52 |
|
roxaz 06 Jul 2011, 09:46
vid wrote:
oh yes, thats exactly what i meant. well in my case formatting of func name should not be an issue since i try to export it in def file, which takes as input func name that appears in obj file. i am using msvc2010 by the way. i use my own created custom build rule to stick it into visual studio. on previous version it all worked just fine. i doubt this would be custom build rule issue tho. i am still attaching rule files, maybe anyone will find them useful. back to the topic - i also couldnt use function created in fasm from my c++ code, no matter what i tried.. sure i had func declaration extern "C" __cdecl, in fasm i tried func name to have leading underscore and without it, still no luck. i tried opening generated obj file with hex editor, well it appears to be compiled alright as i could find name of my function in there. maybe current fasm version is not quite compatible with latest microsoft linker?
|
|||||||||||
06 Jul 2011, 09:46 |
|
vid 06 Jul 2011, 12:58
Quote: back to the topic - i also couldnt use function created in fasm from my c++ code, no matter what i tried.. sure i had func declaration extern "C" __cdecl, in fasm i tried func name to have leading underscore and without it, still no luck. i tried opening generated obj file with hex editor, well it appears to be compiled alright as i could find name of my function in there. maybe current fasm version is not quite compatible with latest microsoft linker? You must be doing something wrong. Works for me: fasm.asm Code: format ms coff section '.code' code executable readable public ff as '_ff' ff: retn cpp.cpp Code: extern "C" void ff(); int main(int argc, char **argv) { ff(); return 0; } build.bat Code: fasm fasm.asm cl /c cpp.cpp link fasm.obj cpp.obj /out:out.exe pause |
|||
06 Jul 2011, 12:58 |
|
roxaz 06 Jul 2011, 13:18
mind trying with x64? i still cant get it to work even when i copy/paste your code.
my asm: Code: format MS64 COFF include '%fasminc%\win64w.INC' section '.text' code readable executable public ff as '_ff' ff: retn and c++ code: Code: #include "stdafx.h" extern "C" void ff(); BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: { ff(); break; } case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } and what compiler are you using? vs2010 or older one? |
|||
06 Jul 2011, 13:18 |
|
vid 06 Jul 2011, 13:57
I only have VS 20008 Express, without 64-bit support. But IIRC, the 64-bit version left out leading underscore, try without it. Also try /verbose switch to linker to find out what exactly is going on.
|
|||
06 Jul 2011, 13:57 |
|
roxaz 06 Jul 2011, 14:17
still no go.
to make sure its not invalid name i did a little trick - declared func without extern "C". Now sure i got error: Code: Error 1 error LNK2019: unresolved external symbol "void __cdecl ff(void)" (?ff@@YAXXZ) referenced in function DllMain F:\l2off\lin2\lin2world\dllmain.obj now in theory if i made func ff public with that mangled name it should compile fine Code: public ff as '?ff@@YAXXZ' however compiling again it doesnt work anyway. full log with /verbose mentions nothing relevant about func in question: Code: 1>------ Rebuild All started: Project: lin2world, Configuration: Debug x64 ------ 1> Assembling [Inputs]... 1> Assembling... 1> stdafx.cpp 1> User.cpp 1> ServerPackets.cpp 1> Patches.cpp 1> lin2world.cpp 1> Events.cpp 1> CSocket.cpp 1> CSharedData.cpp 1> CrashLog.cpp 1> CPet.cpp 1> CParty.cpp 1> CNPC.cpp 1> CLog.cpp 1> ClientPackets.cpp 1> CItem.cpp 1> CInventory.cpp 1> CCreature.cpp 1> Generating Code... 1> dllmain.cpp 1> 1> Starting pass 1 1> Processed /DEFAULTLIB:uuid.lib 1> Processed /DEFAULTLIB:libcpmt 1> Processed /DEFAULTLIB:LIBCMT 1> Processed /DEFAULTLIB:OLDNAMES 1> 1> Searching libraries 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\kernel32.lib: 1> Found __imp_MultiByteToWideChar 1> Referenced in CSocket.obj 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_DisableThreadLibraryCalls 1> Referenced in dllmain.obj 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __IMPORT_DESCRIPTOR_KERNEL32 1> Referenced in kernel32.lib(KERNEL32.dll) 1> Referenced in kernel32.lib(KERNEL32.dll) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __NULL_IMPORT_DESCRIPTOR 1> Referenced in kernel32.lib(KERNEL32.dll) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found KERNEL32_NULL_THUNK_DATA 1> Referenced in kernel32.lib(KERNEL32.dll) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\user32.lib: 1> Found __imp_wvsprintfW 1> Referenced in CLog.obj 1> Referenced in CSocket.obj 1> Loaded user32.lib(USER32.dll) 1> Found __IMPORT_DESCRIPTOR_USER32 1> Referenced in user32.lib(USER32.dll) 1> Loaded user32.lib(USER32.dll) 1> Found USER32_NULL_THUNK_DATA 1> Referenced in user32.lib(USER32.dll) 1> Loaded user32.lib(USER32.dll) 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\gdi32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\winspool.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\comdlg32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\advapi32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\shell32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\ole32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\oleaut32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\uuid.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\odbc32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\odbccp32.lib: 1> Searching F:\l2off\lin2\bin\Debug\shared.lib: 1> Found "void __cdecl HookCALL(void *,void *,unsigned long)" (?HookCALL@@YAXPEAX0K@Z) 1> Referenced in ClientPackets.obj 1> Referenced in CrashLog.obj 1> Loaded shared.lib(NtHookEngine.obj) 1> Processed /DEFAULTLIB:libcpmtd 1> Found "void __cdecl clone_pdh(void)" (?clone_pdh@@YAXXZ) 1> Referenced in dllmain.obj 1> Loaded shared.lib(clone.obj) 1> Found "void __cdecl SeTranslatorSimple(unsigned int,struct _EXCEPTION_POINTERS *)" (?SeTranslatorSimple@@YAXIPEAU_EXCEPTION_POINTERS@@@Z) 1> Referenced in dllmain.obj 1> Loaded shared.lib(SeException.obj) 1> Found "void __cdecl WriteMemoryBYTE(unsigned __int64,unsigned char)" (?WriteMemoryBYTE@@YAX_KE@Z) 1> Referenced in Patches.obj 1> Loaded shared.lib(MemoryTools.obj) 1> Found hde64_disasm 1> Referenced in shared.lib(NtHookEngine.obj) 1> Loaded shared.lib(hde64.obj) 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\libcpmt.lib: 1> Found "void * __cdecl operator new[](unsigned __int64)" (??_U@YAPEAX_K@Z) 1> Referenced in CItem.obj 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded libcpmt.lib(newaop.obj) 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\LIBCMT.lib: 1> Found __CxxFrameHandler3 1> Referenced in CCreature.obj 1> Referenced in User.obj 1> Referenced in shared.lib(SeException.obj) 1> Loaded LIBCMT.lib(trnsctrl.obj) 1> Found _RTC_Shutdown 1> Referenced in shared.lib(hde64.obj) 1> Referenced in shared.lib(NtHookEngine.obj) 1> Referenced in shared.lib(clone.obj) 1> Referenced in shared.lib(SeException.obj) 1> Referenced in shared.lib(MemoryTools.obj) 1> Referenced in lin2world.obj 1> Referenced in Patches.obj 1> Referenced in ServerPackets.obj 1> Referenced in User.obj 1> Referenced in CrashLog.obj 1> Referenced in CSocket.obj 1> Referenced in dllmain.obj 1> Referenced in Events.obj 1> Referenced in CLog.obj 1> Referenced in CNPC.obj 1> Referenced in CParty.obj 1> Referenced in CPet.obj 1> Referenced in CCreature.obj 1> Referenced in CInventory.obj 1> Referenced in CItem.obj 1> Referenced in ClientPackets.obj 1> Loaded LIBCMT.lib(_init_.obj) 1> Found sqrt 1> Referenced in CCreature.obj 1> Loaded LIBCMT.lib(_sqrt_.obj) 1> Found _fltused 1> Referenced in CCreature.obj 1> Referenced in CInventory.obj 1> Referenced in CItem.obj 1> Referenced in LIBCMT.lib(_sqrt_.obj) 1> Loaded LIBCMT.lib(_fpinit_.obj) 1> Found "void __cdecl operator delete(void *)" (??3@YAXPEAX@Z) 1> Referenced in CCreature.obj 1> Referenced in shared.lib(SeException.obj) 1> Loaded LIBCMT.lib(delete.obj) 1> Found _RTC_CheckStackVars 1> Referenced in shared.lib(MemoryTools.obj) 1> Referenced in shared.lib(hde64.obj) 1> Referenced in User.obj 1> Referenced in shared.lib(NtHookEngine.obj) 1> Referenced in shared.lib(clone.obj) 1> Referenced in shared.lib(SeException.obj) 1> Referenced in CCreature.obj 1> Referenced in CItem.obj 1> Referenced in CLog.obj 1> Referenced in CSocket.obj 1> Loaded LIBCMT.lib(_stack_.obj) 1> Found __C_specific_handler 1> Referenced in CCreature.obj 1> Referenced in CInventory.obj 1> Referenced in CSocket.obj 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Loaded LIBCMT.lib(chandler.obj) 1> Found __GSHandlerCheck_EH 1> Referenced in CItem.obj 1> Loaded LIBCMT.lib(gshandlereh.obj) 1> Found __security_cookie 1> Referenced in shared.lib(SeException.obj) 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Referenced in CItem.obj 1> Referenced in CLog.obj 1> Referenced in CSocket.obj 1> Referenced in shared.lib(clone.obj) 1> Loaded LIBCMT.lib(gs_cookie.obj) 1> Found __security_check_cookie 1> Referenced in shared.lib(SeException.obj) 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Referenced in CItem.obj 1> Referenced in CLog.obj 1> Referenced in CSocket.obj 1> Referenced in shared.lib(clone.obj) 1> Loaded LIBCMT.lib(amdsecgs.obj) 1> Found "void __cdecl operator delete[](void *)" (??_V@YAXPEAX@Z) 1> Referenced in CItem.obj 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded LIBCMT.lib(delete2.obj) 1> Found memset 1> Referenced in shared.lib(hde64.obj) 1> Referenced in CItem.obj 1> Referenced in CLog.obj 1> Referenced in CSocket.obj 1> Referenced in shared.lib(NtHookEngine.obj) 1> Loaded LIBCMT.lib(memset.obj) 1> Found __GSHandlerCheck 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Referenced in CLog.obj 1> Referenced in CSocket.obj 1> Referenced in shared.lib(clone.obj) 1> Referenced in shared.lib(SeException.obj) 1> Loaded LIBCMT.lib(gshandler.obj) 1> Found vsprintf 1> Referenced in CLog.obj 1> Referenced in CSocket.obj 1> Loaded LIBCMT.lib(vsprintf.obj) 1> Found "void (__cdecl*__cdecl _set_se_translator(void (__cdecl*)(unsigned int,struct _EXCEPTION_POINTERS *)))(unsigned int,struct _EXCEPTION_POINTERS *)" (?_set_se_translator@@YAP6AXIPEAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z) 1> Referenced in dllmain.obj 1> Loaded LIBCMT.lib(user.obj) 1> Found _DllMainCRTStartup 1> Loaded LIBCMT.lib(dllcrt0.obj) 1> Found memcpy 1> Referenced in shared.lib(NtHookEngine.obj) 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Loaded LIBCMT.lib(memcpy.obj) 1> Found wcscat 1> Referenced in shared.lib(clone.obj) 1> Loaded LIBCMT.lib(wcscat.obj) 1> Found "public: __cdecl std::exception::exception(char const * const &)" (??0exception@std@@QEAA@AEBQEBD@Z) 1> Referenced in shared.lib(SeException.obj) 1> Loaded LIBCMT.lib(stdexcpt.obj) 1> Found strcpy 1> Referenced in shared.lib(SeException.obj) 1> Loaded LIBCMT.lib(strcat.obj) 1> Found sprintf 1> Referenced in shared.lib(SeException.obj) 1> Loaded LIBCMT.lib(sprintf.obj) 1> Found _CxxThrowException 1> Referenced in shared.lib(SeException.obj) 1> Loaded LIBCMT.lib(throw.obj) 1> Found "const type_info::`vftable'" (??_7type_info@@6B@) 1> Referenced in shared.lib(SeException.obj) 1> Referenced in LIBCMT.lib(stdexcpt.obj) 1> Loaded LIBCMT.lib(typinfo.obj) 1> Found strlen 1> Referenced in shared.lib(MemoryTools.obj) 1> Referenced in LIBCMT.lib(stdexcpt.obj) 1> Loaded LIBCMT.lib(strlen.obj) 1> Found wcslen 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded LIBCMT.lib(wcslen.obj) 1> Found _RTC_UninitUse 1> Referenced in shared.lib(hde64.obj) 1> Loaded LIBCMT.lib(_error_.obj) 1> Found "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z) 1> Referenced in libcpmt.lib(newaop.obj) 1> Loaded LIBCMT.lib(new.obj) 1> Found "int __cdecl __StateFromControlPc(struct _s_FuncInfo const *,struct _xDISPATCHER_CONTEXT *)" (?__StateFromControlPc@@YAHPEBU_s_FuncInfo@@PEAU_xDISPATCHER_CONTEXT@@@Z) 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Loaded LIBCMT.lib(ehstate.obj) 1> Found _getptd 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Referenced in LIBCMT.lib(user.obj) 1> Loaded LIBCMT.lib(tidtable.obj) 1> Found __FrameUnwindToState 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Loaded LIBCMT.lib(frame.obj) 1> Found "void __cdecl _inconsistency(void)" (?_inconsistency@@YAXXZ) 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Referenced in LIBCMT.lib(ehstate.obj) 1> Referenced in LIBCMT.lib(frame.obj) 1> Loaded LIBCMT.lib(hooks.obj) 1> Found _RTC_SetErrorFuncW 1> Referenced in LIBCMT.lib(_init_.obj) 1> Loaded LIBCMT.lib(_userapi_.obj) 1> Found _CRT_RTC_INITW 1> Referenced in LIBCMT.lib(_init_.obj) 1> Loaded LIBCMT.lib(rtcmd.obj) 1> Found _handle_error 1> Referenced in LIBCMT.lib(_sqrt_.obj) 1> Loaded LIBCMT.lib(_libm_error_.obj) 1> Found _forcdecpt_l 1> Referenced in LIBCMT.lib(_fpinit_.obj) 1> Loaded LIBCMT.lib(cvt.obj) 1> Found _cfltcvt_tab 1> Referenced in LIBCMT.lib(_fpinit_.obj) 1> Loaded LIBCMT.lib(cmiscdat.obj) 1> Found free 1> Referenced in LIBCMT.lib(delete.obj) 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Referenced in LIBCMT.lib(stdexcpt.obj) 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded LIBCMT.lib(free.obj) 1> Found __NLG_Return2 1> Referenced in LIBCMT.lib(chandler.obj) 1> Loaded LIBCMT.lib(jmpuwind.obj) 1> Found _IsNonwritableInCurrentImage 1> Referenced in LIBCMT.lib(chandler.obj) 1> Loaded LIBCMT.lib(pesect.obj) 1> Found __report_gsfailure 1> Referenced in LIBCMT.lib(amdsecgs.obj) 1> Loaded LIBCMT.lib(gs_report.obj) 1> Found _flsbuf 1> Referenced in LIBCMT.lib(vsprintf.obj) 1> Referenced in LIBCMT.lib(sprintf.obj) 1> Loaded LIBCMT.lib(_flsbuf.obj) 1> Found _output_l 1> Referenced in LIBCMT.lib(vsprintf.obj) 1> Referenced in LIBCMT.lib(sprintf.obj) 1> Loaded LIBCMT.lib(output.obj) 1> Found _invalid_parameter_noinfo 1> Referenced in LIBCMT.lib(vsprintf.obj) 1> Referenced in LIBCMT.lib(sprintf.obj) 1> Referenced in LIBCMT.lib(cvt.obj) 1> Referenced in LIBCMT.lib(output.obj) 1> Loaded LIBCMT.lib(invarg.obj) 1> Found _errno 1> Referenced in LIBCMT.lib(_flsbuf.obj) 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(vsprintf.obj) 1> Referenced in LIBCMT.lib(sprintf.obj) 1> Referenced in LIBCMT.lib(cvt.obj) 1> Referenced in LIBCMT.lib(free.obj) 1> Loaded LIBCMT.lib(dosmap.obj) 1> Found _output_p_l 1> Referenced in LIBCMT.lib(vsprintf.obj) 1> Loaded LIBCMT.lib(outputp.obj) 1> Found _calloc_crt 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded LIBCMT.lib(crtheap.obj) 1> Found _cexit 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(crt0dat.obj) 1> Found _ioterm 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(ioinit.obj) 1> Found _setenvp 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(stdenvp.obj) 1> Found _setargv 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(stdargv.obj) 1> Found __crtGetEnvironmentStringsA 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(a_env.obj) 1> Found _RTC_Initialize 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(_initsect_.obj) 1> Found _heap_term 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(heapinit.obj) 1> Found __CppXcptFilter 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(winxfltr.obj) 1> Found __security_init_cookie 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded LIBCMT.lib(gs_support.obj) 1> Found strcpy_s 1> Referenced in LIBCMT.lib(stdexcpt.obj) 1> Referenced in LIBCMT.lib(cvt.obj) 1> Referenced in LIBCMT.lib(stdenvp.obj) 1> Loaded LIBCMT.lib(strcpy_s.obj) 1> Found malloc 1> Referenced in LIBCMT.lib(stdexcpt.obj) 1> Referenced in LIBCMT.lib(new.obj) 1> Referenced in LIBCMT.lib(crtheap.obj) 1> Loaded LIBCMT.lib(malloc.obj) 1> Found _vsprintf_s_l 1> Referenced in LIBCMT.lib(sprintf.obj) 1> Loaded LIBCMT.lib(vsnprnc.obj) 1> Found "private: static char const * __cdecl type_info::_Name_base(class type_info const *,struct __type_info_node *)" (?_Name_base@type_info@@CAPEBDPEBV1@PEAU__type_info_node@@@Z) 1> Referenced in LIBCMT.lib(typinfo.obj) 1> Loaded LIBCMT.lib(typname.obj) 1> Found strcmp 1> Referenced in LIBCMT.lib(typinfo.obj) 1> Referenced in LIBCMT.lib(frame.obj) 1> Loaded LIBCMT.lib(strcmp.obj) 1> Found "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPEAEPEA_WKPEAH1K@Z) 1> Referenced in LIBCMT.lib(_error_.obj) 1> Loaded LIBCMT.lib(_pdblkup_.obj) 1> Found atexit 1> Referenced in LIBCMT.lib(new.obj) 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Loaded LIBCMT.lib(onexit.obj) 1> Found _callnewh 1> Referenced in LIBCMT.lib(new.obj) 1> Referenced in LIBCMT.lib(malloc.obj) 1> Loaded LIBCMT.lib(handler.obj) 1> Found _mtdeletelocks 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded LIBCMT.lib(mlock.obj) 1> Found __addlocaleref 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded LIBCMT.lib(localref.obj) 1> Found __ptlocinfo 1> Referenced in LIBCMT.lib(localref.obj) 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Referenced in LIBCMT.lib(cvt.obj) 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(outputp.obj) 1> Loaded LIBCMT.lib(nlsdata2.obj) 1> Found __initialmbcinfo 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Referenced in LIBCMT.lib(nlsdata2.obj) 1> Loaded LIBCMT.lib(mbctype.obj) 1> Found _CallSettingFrame 1> Referenced in LIBCMT.lib(frame.obj) 1> Loaded LIBCMT.lib(handlers.obj) 1> Found "int __cdecl _ValidateExecute(__int64 (__cdecl*)(void))" (?_ValidateExecute@@YAHP6A_JXZ@Z) 1> Referenced in LIBCMT.lib(frame.obj) 1> Loaded LIBCMT.lib(validate.obj) 1> Found abort 1> Referenced in LIBCMT.lib(hooks.obj) 1> Loaded LIBCMT.lib(abort.obj) 1> Found _set_errno_from_matherr 1> Referenced in LIBCMT.lib(_libm_error_.obj) 1> Loaded LIBCMT.lib(_fpexcept_.obj) 1> Found _matherr 1> Referenced in LIBCMT.lib(_libm_error_.obj) 1> Referenced in LIBCMT.lib(_fpexcept_.obj) 1> Loaded LIBCMT.lib(_matherr_.obj) 1> Found _ctrlfp 1> Referenced in LIBCMT.lib(_libm_error_.obj) 1> Referenced in LIBCMT.lib(_fpexcept_.obj) 1> Loaded LIBCMT.lib(_fpctrl_.obj) 1> Found strrchr 1> Referenced in LIBCMT.lib(cvt.obj) 1> Loaded LIBCMT.lib(strrchr.obj) 1> Found __globallocalestatus 1> Referenced in LIBCMT.lib(mbctype.obj) 1> Referenced in LIBCMT.lib(cvt.obj) 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(outputp.obj) 1> Referenced in LIBCMT.lib(localref.obj) 1> Loaded LIBCMT.lib(glstatus.obj) 1> Found isdigit 1> Referenced in LIBCMT.lib(cvt.obj) 1> Loaded LIBCMT.lib(_ctype.obj) 1> Found tolower 1> Referenced in LIBCMT.lib(cvt.obj) 1> Loaded LIBCMT.lib(tolower.obj) 1> Found _atoflt_l 1> Referenced in LIBCMT.lib(cvt.obj) 1> Loaded LIBCMT.lib(atodbl.obj) 1> Found _outputformat 1> Referenced in LIBCMT.lib(cvt.obj) 1> Loaded LIBCMT.lib(outputformat.obj) 1> Found _fptostr 1> Referenced in LIBCMT.lib(cvt.obj) 1> Loaded LIBCMT.lib(_fptostr.obj) 1> Found _fltout2 1> Referenced in LIBCMT.lib(cvt.obj) 1> Loaded LIBCMT.lib(_cfout_.obj) 1> Found _fptrap 1> Referenced in LIBCMT.lib(cmiscdat.obj) 1> Loaded LIBCMT.lib(crt0fp.obj) 1> Found __crt_debugger_hook 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded LIBCMT.lib(dbghook.obj) 1> Found _lseeki64 1> Referenced in LIBCMT.lib(_flsbuf.obj) 1> Loaded LIBCMT.lib(lseeki64.obj) 1> Found _write 1> Referenced in LIBCMT.lib(_flsbuf.obj) 1> Loaded LIBCMT.lib(write.obj) 1> Found _getbuf 1> Referenced in LIBCMT.lib(_flsbuf.obj) 1> Loaded LIBCMT.lib(_getbuf.obj) 1> Found _isatty 1> Referenced in LIBCMT.lib(_flsbuf.obj) 1> Referenced in LIBCMT.lib(write.obj) 1> Loaded LIBCMT.lib(isatty.obj) 1> Found __iob_func 1> Referenced in LIBCMT.lib(_flsbuf.obj) 1> Loaded LIBCMT.lib(_file.obj) 1> Found _fileno 1> Referenced in LIBCMT.lib(_flsbuf.obj) 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(outputp.obj) 1> Loaded LIBCMT.lib(fileno.obj) 1> Found _isleadbyte_l 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(outputp.obj) 1> Referenced in LIBCMT.lib(tolower.obj) 1> Loaded LIBCMT.lib(_wctype.obj) 1> Found _get_printf_count_output 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(outputp.obj) 1> Loaded LIBCMT.lib(printf.obj) 1> Found wctomb_s 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(outputp.obj) 1> Loaded LIBCMT.lib(wctomb.obj) 1> Found strtol 1> Referenced in LIBCMT.lib(outputp.obj) 1> Loaded LIBCMT.lib(strtol.obj) 1> Found __lookuptable_s 1> Referenced in LIBCMT.lib(outputp.obj) 1> Loaded LIBCMT.lib(outputs.obj) 1> Found _calloc_impl 1> Referenced in LIBCMT.lib(crtheap.obj) 1> Loaded LIBCMT.lib(calloc_impl.obj) 1> Found realloc 1> Referenced in LIBCMT.lib(crtheap.obj) 1> Loaded LIBCMT.lib(realloc.obj) 1> Found _recalloc 1> Referenced in LIBCMT.lib(crtheap.obj) 1> Loaded LIBCMT.lib(recalloc.obj) 1> Found _initp_misc_winsig 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Loaded LIBCMT.lib(winsig.obj) 1> Found _initp_misc_rand_s 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Loaded LIBCMT.lib(rand_s.obj) 1> Found _initp_misc_purevirt 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Loaded LIBCMT.lib(inithelp.obj) 1> Found __xc_z 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Loaded LIBCMT.lib(crt0init.obj) 1> Processed /DEFAULTLIB:kernel32.lib 1> Processed /DISALLOWLIB:libcmtd.lib 1> Processed /DISALLOWLIB:msvcrt.lib 1> Processed /DISALLOWLIB:msvcrtd.lib 1> Found _NMSG_WRITE 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Referenced in LIBCMT.lib(malloc.obj) 1> Referenced in LIBCMT.lib(mlock.obj) 1> Loaded LIBCMT.lib(crt0msg.obj) 1> Found _ismbblead 1> Referenced in LIBCMT.lib(stdargv.obj) 1> Loaded LIBCMT.lib(ismbbyte.obj) 1> Found _newmode 1> Referenced in LIBCMT.lib(malloc.obj) 1> Referenced in LIBCMT.lib(calloc_impl.obj) 1> Referenced in LIBCMT.lib(realloc.obj) 1> Loaded LIBCMT.lib(_newmode.obj) 1> Found __unDName 1> Referenced in LIBCMT.lib(typname.obj) 1> Loaded LIBCMT.lib(undname.obj) 1> Found _msize 1> Referenced in LIBCMT.lib(onexit.obj) 1> Referenced in LIBCMT.lib(recalloc.obj) 1> Loaded LIBCMT.lib(msize.obj) 1> Found __free_lc_time 1> Referenced in LIBCMT.lib(localref.obj) 1> Loaded LIBCMT.lib(inittime.obj) 1> Found __free_lconv_num 1> Referenced in LIBCMT.lib(localref.obj) 1> Loaded LIBCMT.lib(initnum.obj) 1> Found __free_lconv_mon 1> Referenced in LIBCMT.lib(localref.obj) 1> Loaded LIBCMT.lib(initmon.obj) 1> Found __lconv_c 1> Referenced in LIBCMT.lib(localref.obj) 1> Referenced in LIBCMT.lib(nlsdata2.obj) 1> Referenced in LIBCMT.lib(initnum.obj) 1> Referenced in LIBCMT.lib(initmon.obj) 1> Loaded LIBCMT.lib(lconv.obj) 1> Found __newcumap 1> Referenced in LIBCMT.lib(nlsdata2.obj) 1> Loaded LIBCMT.lib(ctype.obj) 1> Found __crtLCMapStringA 1> Referenced in LIBCMT.lib(mbctype.obj) 1> Referenced in LIBCMT.lib(tolower.obj) 1> Loaded LIBCMT.lib(a_map.obj) 1> Found __crtGetStringTypeA 1> Referenced in LIBCMT.lib(mbctype.obj) 1> Loaded LIBCMT.lib(a_str.obj) 1> Found _decomp 1> Referenced in LIBCMT.lib(_fpexcept_.obj) 1> Loaded LIBCMT.lib(_util_.obj) 1> Found _get_fpsr 1> Referenced in LIBCMT.lib(_fpctrl_.obj) 1> Loaded LIBCMT.lib(_fpsr_.obj) 1> Found _isctype_l 1> Referenced in LIBCMT.lib(_ctype.obj) 1> Referenced in LIBCMT.lib(tolower.obj) 1> Referenced in LIBCMT.lib(strtol.obj) 1> Loaded LIBCMT.lib(isctype.obj) 1> Found __locale_changed 1> Referenced in LIBCMT.lib(_ctype.obj) 1> Referenced in LIBCMT.lib(tolower.obj) 1> Referenced in LIBCMT.lib(strtol.obj) 1> Referenced in LIBCMT.lib(isctype.obj) 1> Loaded LIBCMT.lib(setlocal.obj) 1> Found _ld12tod 1> Referenced in LIBCMT.lib(atodbl.obj) 1> Loaded LIBCMT.lib(_intrncvt_.obj) 1> Found __strgtold12_l 1> Referenced in LIBCMT.lib(atodbl.obj) 1> Loaded LIBCMT.lib(_strgtold_.obj) 1> Found $I10_OUTPUT 1> Referenced in LIBCMT.lib(_cfout_.obj) 1> Loaded LIBCMT.lib(_x10fout_.obj) 1> Found _get_osfhandle 1> Referenced in LIBCMT.lib(lseeki64.obj) 1> Loaded LIBCMT.lib(osfinfo.obj) 1> Found _putwch_nolock 1> Referenced in LIBCMT.lib(write.obj) 1> Loaded LIBCMT.lib(putwch.obj) 1> Found mbtowc 1> Referenced in LIBCMT.lib(write.obj) 1> Loaded LIBCMT.lib(mbtowc.obj) 1> Found __chkstk 1> Referenced in LIBCMT.lib(write.obj) 1> Referenced in LIBCMT.lib(a_map.obj) 1> Referenced in LIBCMT.lib(a_str.obj) 1> Loaded LIBCMT.lib(chkstk.obj) 1> Found _fcloseall 1> Referenced in LIBCMT.lib(_file.obj) 1> Loaded LIBCMT.lib(closeall.obj) 1> Found _flushall 1> Referenced in LIBCMT.lib(_file.obj) 1> Loaded LIBCMT.lib(fflush.obj) 1> Found iswctype 1> Referenced in LIBCMT.lib(_wctype.obj) 1> Loaded LIBCMT.lib(iswctype.obj) 1> Found _ftbuf 1> Referenced in LIBCMT.lib(printf.obj) 1> Loaded LIBCMT.lib(_sftbuf.obj) 1> Found _vprintf_l 1> Referenced in LIBCMT.lib(printf.obj) 1> Loaded LIBCMT.lib(vprintf.obj) 1> Found ___mb_cur_max_func 1> Referenced in LIBCMT.lib(wctomb.obj) 1> Loaded LIBCMT.lib(initctyp.obj) 1> Found strncpy_s 1> Referenced in LIBCMT.lib(inithelp.obj) 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(strncpy_s.obj) 1> Found __crtGetLocaleInfoA 1> Referenced in LIBCMT.lib(inithelp.obj) 1> Loaded LIBCMT.lib(a_loc.obj) 1> Found __crtMessageBoxW 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded LIBCMT.lib(crtmboxw.obj) 1> Found wcscat_s 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded LIBCMT.lib(wcscat_s.obj) 1> Found wcsncpy_s 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded LIBCMT.lib(wcsncpy_s.obj) 1> Found wcscpy_s 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded LIBCMT.lib(wcscpy_s.obj) 1> Found _set_error_mode 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded LIBCMT.lib(errmode.obj) 1> Found _purecall 1> Referenced in LIBCMT.lib(undname.obj) 1> Loaded LIBCMT.lib(purevirt.obj) 1> Found atol 1> Referenced in LIBCMT.lib(undname.obj) 1> Loaded LIBCMT.lib(atox.obj) 1> Found __init_collate 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(initcoll.obj) 1> Found __mb_cur_max 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(nlsdata1.obj) 1> Found strcat_s 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(strcat_s.obj) 1> Found strcspn 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(strcspn.obj) 1> Found __get_qualified_locale 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(getqloc.obj) 1> Found memcmp 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(memcmp.obj) 1> Found strncmp 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(strncmp.obj) 1> Found strpbrk 1> Referenced in LIBCMT.lib(setlocal.obj) 1> Loaded LIBCMT.lib(strpbrk.obj) 1> Found _pow10neg 1> Referenced in LIBCMT.lib(_strgtold_.obj) 1> Referenced in LIBCMT.lib(_x10fout_.obj) 1> Loaded LIBCMT.lib(_constpow_.obj) 1> Found __mtold12 1> Referenced in LIBCMT.lib(_strgtold_.obj) 1> Loaded LIBCMT.lib(_mantold_.obj) 1> Found __initconout 1> Referenced in LIBCMT.lib(putwch.obj) 1> Loaded LIBCMT.lib(initcon.obj) 1> Found fclose 1> Referenced in LIBCMT.lib(closeall.obj) 1> Loaded LIBCMT.lib(fclose.obj) 1> Found _commit 1> Referenced in LIBCMT.lib(fflush.obj) 1> Loaded LIBCMT.lib(commit.obj) 1> Found _strtoi64 1> Referenced in LIBCMT.lib(atox.obj) 1> Loaded LIBCMT.lib(strtoq.obj) 1> Found _stricmp 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded LIBCMT.lib(stricmp.obj) 1> Found _strnicmp 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded LIBCMT.lib(strnicmp.obj) 1> Found _itoa_s 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded LIBCMT.lib(xtoas.obj) 1> Found _close 1> Referenced in LIBCMT.lib(fclose.obj) 1> Loaded LIBCMT.lib(close.obj) 1> Found _freebuf 1> Referenced in LIBCMT.lib(fclose.obj) 1> Loaded LIBCMT.lib(_freebuf.obj) 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\OLDNAMES.lib: 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\libcpmtd.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\kernel32.lib: 1> Found __imp_VirtualProtect 1> Referenced in shared.lib(NtHookEngine.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetProcAddress 1> Referenced in LIBCMT.lib(rand_s.obj) 1> Referenced in LIBCMT.lib(crtmboxw.obj) 1> Referenced in shared.lib(clone.obj) 1> Referenced in LIBCMT.lib(_error_.obj) 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_LoadLibraryW 1> Referenced in LIBCMT.lib(crtmboxw.obj) 1> Referenced in shared.lib(clone.obj) 1> Referenced in LIBCMT.lib(_error_.obj) 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Referenced in LIBCMT.lib(rand_s.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetSystemDirectoryW 1> Referenced in shared.lib(clone.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_VirtualProtectEx 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_ReadProcessMemory 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_WriteProcessMemory 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FlushInstructionCache 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_VirtualQueryEx 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetModuleHandleA 1> Referenced in shared.lib(MemoryTools.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found RtlLookupFunctionEntry 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found RtlUnwindEx 1> Referenced in LIBCMT.lib(trnsctrl.obj) 1> Referenced in LIBCMT.lib(jmpuwind.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_EncodePointer 1> Referenced in LIBCMT.lib(rand_s.obj) 1> Referenced in LIBCMT.lib(crtmboxw.obj) 1> Referenced in LIBCMT.lib(purevirt.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Referenced in LIBCMT.lib(onexit.obj) 1> Referenced in LIBCMT.lib(handler.obj) 1> Referenced in LIBCMT.lib(winsig.obj) 1> Referenced in LIBCMT.lib(user.obj) 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Referenced in LIBCMT.lib(hooks.obj) 1> Referenced in LIBCMT.lib(cmiscdat.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_DecodePointer 1> Referenced in LIBCMT.lib(purevirt.obj) 1> Referenced in LIBCMT.lib(outputs.obj) 1> Referenced in LIBCMT.lib(winsig.obj) 1> Referenced in LIBCMT.lib(rand_s.obj) 1> Referenced in LIBCMT.lib(crtmboxw.obj) 1> Referenced in LIBCMT.lib(outputp.obj) 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Referenced in LIBCMT.lib(onexit.obj) 1> Referenced in LIBCMT.lib(handler.obj) 1> Referenced in LIBCMT.lib(user.obj) 1> Referenced in LIBCMT.lib(hooks.obj) 1> Referenced in LIBCMT.lib(output.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetCurrentThreadId 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Referenced in LIBCMT.lib(gs_support.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FlsSetValue 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetCommandLineA 1> Referenced in LIBCMT.lib(dllcrt0.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_RaiseException 1> Referenced in LIBCMT.lib(throw.obj) 1> Referenced in LIBCMT.lib(_error_.obj) 1> Referenced in LIBCMT.lib(frame.obj) 1> Referenced in LIBCMT.lib(_fpexcept_.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found RtlPcToFileHeader 1> Referenced in LIBCMT.lib(throw.obj) 1> Referenced in LIBCMT.lib(frame.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_WideCharToMultiByte 1> Referenced in LIBCMT.lib(a_map.obj) 1> Referenced in LIBCMT.lib(a_loc.obj) 1> Referenced in LIBCMT.lib(_error_.obj) 1> Referenced in LIBCMT.lib(a_env.obj) 1> Referenced in LIBCMT.lib(write.obj) 1> Referenced in LIBCMT.lib(wctomb.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_IsDebuggerPresent 1> Referenced in LIBCMT.lib(_error_.obj) 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_lstrlenA 1> Referenced in LIBCMT.lib(_error_.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FlsGetValue 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FlsFree 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_SetLastError 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetLastError 1> Referenced in LIBCMT.lib(inithelp.obj) 1> Referenced in LIBCMT.lib(osfinfo.obj) 1> Referenced in LIBCMT.lib(commit.obj) 1> Referenced in LIBCMT.lib(close.obj) 1> Referenced in LIBCMT.lib(wctomb.obj) 1> Referenced in LIBCMT.lib(realloc.obj) 1> Referenced in LIBCMT.lib(winsig.obj) 1> Referenced in LIBCMT.lib(rand_s.obj) 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Referenced in LIBCMT.lib(free.obj) 1> Referenced in LIBCMT.lib(lseeki64.obj) 1> Referenced in LIBCMT.lib(write.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetCurrentThread 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FlsAlloc 1> Referenced in LIBCMT.lib(tidtable.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_HeapFree 1> Referenced in LIBCMT.lib(free.obj) 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_TerminateProcess 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetCurrentProcess 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_UnhandledExceptionFilter 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_SetUnhandledExceptionFilter 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found RtlVirtualUnwind 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_RtlCaptureContext 1> Referenced in LIBCMT.lib(gs_report.obj) 1> Referenced in LIBCMT.lib(invarg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_Sleep 1> Referenced in LIBCMT.lib(crtheap.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetModuleHandleW 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_ExitProcess 1> Referenced in LIBCMT.lib(crt0dat.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_SetHandleCount 1> Referenced in LIBCMT.lib(ioinit.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetStdHandle 1> Referenced in LIBCMT.lib(ioinit.obj) 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_InitializeCriticalSectionAndSpinCount 1> Referenced in LIBCMT.lib(ioinit.obj) 1> Referenced in LIBCMT.lib(mlock.obj) 1> Referenced in LIBCMT.lib(osfinfo.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetFileType 1> Referenced in LIBCMT.lib(ioinit.obj) 1> Referenced in LIBCMT.lib(osfinfo.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetStartupInfoW 1> Referenced in LIBCMT.lib(ioinit.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_DeleteCriticalSection 1> Referenced in LIBCMT.lib(ioinit.obj) 1> Referenced in LIBCMT.lib(mlock.obj) 1> Referenced in LIBCMT.lib(closeall.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetModuleFileNameA 1> Referenced in LIBCMT.lib(stdargv.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FreeEnvironmentStringsW 1> Referenced in LIBCMT.lib(a_env.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetEnvironmentStringsW 1> Referenced in LIBCMT.lib(a_env.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_HeapSetInformation 1> Referenced in LIBCMT.lib(heapinit.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetVersion 1> Referenced in LIBCMT.lib(heapinit.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_HeapCreate 1> Referenced in LIBCMT.lib(heapinit.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_HeapDestroy 1> Referenced in LIBCMT.lib(heapinit.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_QueryPerformanceCounter 1> Referenced in LIBCMT.lib(gs_support.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetTickCount 1> Referenced in LIBCMT.lib(gs_support.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetCurrentProcessId 1> Referenced in LIBCMT.lib(gs_support.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetSystemTimeAsFileTime 1> Referenced in LIBCMT.lib(gs_support.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_HeapAlloc 1> Referenced in LIBCMT.lib(malloc.obj) 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Referenced in LIBCMT.lib(calloc_impl.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FreeLibrary 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Referenced in LIBCMT.lib(rand_s.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetProcessHeap 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetModuleFileNameW 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_VirtualQuery 1> Referenced in LIBCMT.lib(_pdblkup_.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_LeaveCriticalSection 1> Referenced in LIBCMT.lib(mlock.obj) 1> Referenced in LIBCMT.lib(_file.obj) 1> Referenced in LIBCMT.lib(osfinfo.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FatalAppExitA 1> Referenced in LIBCMT.lib(mlock.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_EnterCriticalSection 1> Referenced in LIBCMT.lib(mlock.obj) 1> Referenced in LIBCMT.lib(_file.obj) 1> Referenced in LIBCMT.lib(osfinfo.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetCPInfo 1> Referenced in LIBCMT.lib(mbctype.obj) 1> Referenced in LIBCMT.lib(initctyp.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetACP 1> Referenced in LIBCMT.lib(mbctype.obj) 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetOEMCP 1> Referenced in LIBCMT.lib(mbctype.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_IsValidCodePage 1> Referenced in LIBCMT.lib(mbctype.obj) 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_SetFilePointer 1> Referenced in LIBCMT.lib(lseeki64.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_WriteFile 1> Referenced in LIBCMT.lib(write.obj) 1> Referenced in LIBCMT.lib(crt0msg.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetConsoleCP 1> Referenced in LIBCMT.lib(write.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetConsoleMode 1> Referenced in LIBCMT.lib(write.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_HeapReAlloc 1> Referenced in LIBCMT.lib(realloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_SetConsoleCtrlHandler 1> Referenced in LIBCMT.lib(winsig.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetLocaleInfoW 1> Referenced in LIBCMT.lib(inithelp.obj) 1> Referenced in LIBCMT.lib(a_loc.obj) 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_HeapSize 1> Referenced in LIBCMT.lib(msize.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_LCMapStringW 1> Referenced in LIBCMT.lib(a_map.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetStringTypeW 1> Referenced in LIBCMT.lib(a_str.obj) 1> Referenced in LIBCMT.lib(iswctype.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_SetStdHandle 1> Referenced in LIBCMT.lib(osfinfo.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_WriteConsoleW 1> Referenced in LIBCMT.lib(putwch.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetUserDefaultLCID 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_GetLocaleInfoA 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_EnumSystemLocalesA 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_IsValidLocale 1> Referenced in LIBCMT.lib(getqloc.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_CreateFileW 1> Referenced in LIBCMT.lib(initcon.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_CloseHandle 1> Referenced in LIBCMT.lib(initcon.obj) 1> Referenced in LIBCMT.lib(close.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Found __imp_FlushFileBuffers 1> Referenced in LIBCMT.lib(commit.obj) 1> Loaded kernel32.lib(KERNEL32.dll) 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\user32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\gdi32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\winspool.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\comdlg32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\advapi32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\shell32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\ole32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\oleaut32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\uuid.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\odbc32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\odbccp32.lib: 1> Searching F:\l2off\lin2\bin\Debug\shared.lib: 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\libcpmt.lib: 1> 1> Finished searching libraries 1> 1> Generating .exp file 1> Creating library F:\l2off\lin2\bin\Debug\lin2world.lib and object F:\l2off\lin2\bin\Debug\lin2world.exp 1> 1> Finished generating .exp file 1> 1> Searching libraries 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\kernel32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\user32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\gdi32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\winspool.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\comdlg32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\advapi32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\shell32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\ole32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\oleaut32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\uuid.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\odbc32.lib: 1> Searching C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64\odbccp32.lib: 1> Searching F:\l2off\lin2\bin\Debug\shared.lib: 1> Found _PdhAdd009CounterA 1> Referenced in lin2world.exp 1> Loaded shared.lib(clone_a.obj) 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\libcpmt.lib: 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\LIBCMT.lib: 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\OLDNAMES.lib: 1> Searching C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64\libcpmtd.lib: 1> 1> Finished searching libraries 1> 1> Finished pass 1 1> 1> 1> Invoking CVTRES.EXE: 1> /machine:amd64 1> /verbose 1> /out:"C:\Users\rndbit\AppData\Local\Temp\lnk8665.tmp" 1> /readonly 1> "F:\l2off\lin2\obj\Debug\lin2world\lin2world.dll.embed.manifest.res" 1> Microsoft (R) Windows Resource To Object Converter Version 10.00.30319.01 1> Copyright (C) Microsoft Corporation. All rights reserved. 1> 1> adding resource. type:MANIFEST, name:2, language:0x0409, flags:0x30, size:2 1>dllmain.obj : error LNK2019: unresolved external symbol "void __cdecl ff(void)" (?ff@@YAXXZ) referenced in function DllMain 1>F:\l2off\lin2\bin\Debug\lin2world.dll : fatal error LNK1120: 1 unresolved externals ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== P.S. i forgot that i actually use compiler from visual studio 2005 (with a help of plugin, i need that specific compiler) |
|||
06 Jul 2011, 14:17 |
|
revolution 06 Jul 2011, 14:21
maybe?
Code: public ff as '_?ff@@YAXXZ' |
|||
06 Jul 2011, 14:21 |
|
roxaz 06 Jul 2011, 14:32
nope.. i guessed like all possible variants here... _, __, _..@0 ... Nothing works. i even manually included compiled obj file into inputs while guessing that maybe somehow obj is not linked into project. well i was wrong on that too - didnt help.
|
|||
06 Jul 2011, 14:32 |
|
vid 06 Jul 2011, 14:34
Aren't you by any chance forgetting to include the FASM-produced .obj in list of objects for linker?
|
|||
06 Jul 2011, 14:34 |
|
roxaz 06 Jul 2011, 14:48
turns out that is the case. last time i tried this left a mistake in my code, now it works. for some reason visual studio custom build rule did not add this obj to linker input for me =\
EDIT: for those who might need - proper fixed fasm custom build rules for visual studio 2010 attached
|
|||||||||||
06 Jul 2011, 14:48 |
|
vid 06 Jul 2011, 16:05
I never played with Visual Studio too much. If they are going to be useful for others, can you please post them in separate thread (dunno if one already exists or not)? Then I can make it sticky for others to easily find it.
|
|||
06 Jul 2011, 16:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.