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

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

Closed
FaBeyyy opened this issue Jul 30, 2017 · 1 comment
Closed

Comments

@FaBeyyy
Copy link

FaBeyyy commented Jul 30, 2017

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
Copy link
Contributor

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).

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

2 participants