Cybellum / DoubleAgent

Zero-Day Code Injection and Persistence Technique
Apache License 2.0
1.22k stars 414 forks source link

Unresolved External Symbols when trying to use stdio.h functions. #8

Closed FaBeyyy closed 7 years ago

FaBeyyy commented 7 years ago

Im using VS2017, plattform toolset 141, and im getting:

LNK2001 unresolved external symbol ___acrt_iob_func DoubleAgentDll & LNK2001 unresolved external symbol ___stdio_common_vfwprintf DoubleAgentDll

when trying to use (VOID)wprintf(); or any other print function after including stdio.h in the DoubleAgentDll.

MichaelEngstlerCB commented 7 years ago

You need to link against the C Standard Library.

1. Project Properties -> Linker -> General -> Ignore All Default Libraries = Inherit from parent or project defaults 2. Project Properties -> Linker -> Advanced -> Entry Point = Inherit from parent or project defaults

Note that linking against external libraries (except ntdll.dll) might cause problems on some versions of Windows (Specifically Windows 7).