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

Missing Windows libs if not enabling default libs #16

Closed
Nemirtingas opened this issue Oct 15, 2020 · 1 comment · May be fixed by #17
Closed

Missing Windows libs if not enabling default libs #16

Nemirtingas opened this issue Oct 15, 2020 · 1 comment · May be fixed by #17

Comments

@Nemirtingas
Copy link

In

target_link_libraries( crypto ws2_32 crypt32 )

You should add user32 advapi32. For example when disabling default libraries, I'm missing theses symbols:

  • user32
lld-link-9: error: undefined symbol: __imp__GetProcessWindowStation@0
>>> referenced by libcrypto-1_1.lib(cryptlib.c.obj):(_OPENSSL_isservice)

lld-link-9: error: undefined symbol: __imp__GetUserObjectInformationW@20
>>> referenced by libcrypto-1_1.lib(cryptlib.c.obj):(_OPENSSL_isservice)
>>> referenced by libcrypto-1_1.lib(cryptlib.c.obj):(_OPENSSL_isservice)

lld-link-9: error: undefined symbol: __imp__MessageBoxA@16
>>> referenced by libcrypto-1_1.lib(cryptlib.c.obj):(_OPENSSL_showfatal)
  • advapi32
lld-link-9: error: undefined symbol: __imp__RegisterEventSourceA@8
>>> referenced by libcrypto-1_1.lib(cryptlib.c.obj):(_OPENSSL_showfatal)

lld-link-9: error: undefined symbol: __imp__ReportEventA@36
>>> referenced by libcrypto-1_1.lib(cryptlib.c.obj):(_OPENSSL_showfatal)

lld-link-9: error: undefined symbol: __imp__DeregisterEventSource@4
>>> referenced by libcrypto-1_1.lib(cryptlib.c.obj):(_OPENSSL_showfatal)
@janbar
Copy link
Owner

janbar commented Oct 19, 2020

Ok. Thanks. I will include the change soon.

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

Successfully merging a pull request may close this issue.

2 participants