process_ghosting icon indicating copy to clipboard operation
process_ghosting copied to clipboard

build error

Open ghost opened this issue 4 years ago • 5 comments

when i try to build the solution i get this any help please

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "bool __cdecl buffer_remote_peb(void *,struct _PROCESS_BASIC_INFORMATION &,struct _PEB &)" (?buffer_remote_peb@@YA_NPAXAAU_PROCESS_BASIC_INFORMATION@@AAU_PEB@@@Z) referenced in function "bool __cdecl process_ghost(wchar_t *,unsigned char *,unsigned long)" (?process_ghost@@YA_NPA_WPAEK@Z) WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2019 unresolved external symbol "bool __cdecl setup_process_parameters(void *,struct _PROCESS_BASIC_INFORMATION &,wchar_t *)" (?setup_process_parameters@@YA_NPAXAAU_PROCESS_BASIC_INFORMATION@@PA_W@Z) referenced in function "bool __cdecl process_ghost(wchar_t *,unsigned char *,unsigned long)" (?process_ghost@@YA_NPA_WPAEK@Z) WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2019 unresolved external symbol "unsigned long __cdecl get_entry_point_rva(unsigned char const *)" (?get_entry_point_rva@@YAKPBE@Z) referenced in function "bool __cdecl process_ghost(wchar_t *,unsigned char *,unsigned long)" (?process_ghost@@YA_NPA_WPAEK@Z) WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2019 unresolved external symbol "unsigned char * __cdecl buffer_payload(wchar_t *,unsigned int &)" (?buffer_payload@@YAPAEPA_WAAI@Z) referenced in function _wmain WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2019 unresolved external symbol "void __cdecl free_buffer(unsigned char *,unsigned int)" (?free_buffer@@YAXPAEI@Z) referenced in function _wmain WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2019 unresolved external symbol "bool __cdecl get_calc_path(wchar_t ,unsigned long,bool)" (?get_calc_path@@YA_NPA_WK_N@Z) referenced in function _wmain WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2019 unresolved external symbol "bool __cdecl init_ntdll_func(void)" (?init_ntdll_func@@YA_NXZ) referenced in function _wmain WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2001 unresolved external symbol "long (__stdcall NtCreateProcessEx)(void * *,unsigned long,struct _OBJECT_ATTRIBUTES *,void *,unsigned long,void *,void *,void ,unsigned char)" (?NtCreateProcessEx@@3P6GJPAPAXKPAU_OBJECT_ATTRIBUTES@@PAXK222E@ZA) WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2001 unresolved external symbol "long (__stdcall NtCreateThreadEx)(void * *,unsigned long,struct _OBJECT_ATTRIBUTES *,void *,void *,void *,unsigned long,unsigned long,unsigned long,unsigned long,void *)" (?NtCreateThreadEx@@3P6GJPAPAXKPAU_OBJECT_ATTRIBUTES@@PAX22KKKK2@ZA) WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\WindowsProject4.obj 1 Error LNK2019 unresolved external symbol _WinMain@16 referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) WindowsProject4 C:\Users\aliendell\source\repos\gho\WindowsProject4\MSVCRTD.lib(exe_winmain.obj) 1 Error LNK1120 10 unresolved externals WindowsProject4 C:\Users\aliendell\source\repos\gho\Debug\WindowsProject4.exe 1

ghost avatar Jun 18 '21 11:06 ghost

how do you build it? did you generate the Visual Studio project from the CMake? you need to do is similar to demonstrated here.

also, if you just want to test, you don't need to build by yourself, just download the ready-made builds from the AppVeyor server ("Artifacts" tab), i.e. https://ci.appveyor.com/project/hasherezade/process-ghosting/build/job/cwjgs59gt6k0wk1e/artifacts

hasherezade avatar Jun 18 '21 11:06 hasherezade

ok thanks for helping ...good share by the way

ghost avatar Jun 18 '21 13:06 ghost

did you manage to get it build?

hasherezade avatar Jun 18 '21 13:06 hasherezade

how do you build it? did you generate the Visual Studio project from the CMake? you need to do is similar to demonstrated here.

also, if you just want to test, you don't need to build by yourself, just download the ready-made builds from the AppVeyor server ("Artifacts" tab), i.e. https://ci.appveyor.com/project/hasherezade/process-ghosting/build/job/cwjgs59gt6k0wk1e/artifacts

thank you for being noob friendly Miss Beautiful Aleksandra Doniec 😍😍😍

YellowBlueBuzz avatar Jun 20 '21 11:06 YellowBlueBuzz

  1. mkdir build
  2. cd build
  3. cmake.exe .. -A x64
  4. cmake.exe -DCMAKE_INSTALL_PREFIX:PATH=%APPVEYOR_BUILD_FOLDER%/%APPVEYOR_REPO_COMMIT% ..
  5. cmake.exe --build . --config %CONFIGURATION% --target install 如果报错 就用 visual studio 2019编译

zuchuanchengxuyuan avatar Jul 24 '21 10:07 zuchuanchengxuyuan