Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #1

Open
ghost opened this issue Jun 18, 2021 · 5 comments
Open

build error #1

ghost opened this issue Jun 18, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 18, 2021

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

@hasherezade
Copy link
Owner

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

@ghost
Copy link
Author

ghost commented Jun 18, 2021

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

@hasherezade
Copy link
Owner

did you manage to get it build?

@YellowBlueBuzz
Copy link

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 😍😍😍

@zuchuanchengxuyuan
Copy link

  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编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants