Skip to content

Crosscompile linux to windows: linking fails, undefined reference SSL_library_init 3.9.2 #1053

Open
@tillpp

Description

@tillpp

I compiled it for windows using linux with the README.windows commands
i got three library files, tls.a,ssl.a and crypto.a
but when i tried using them i got the following error message:

/usr/bin/x86_64-w64-mingw32-ld: CMakeFiles/_.dir/objects.a(main.cpp.obj):_/src/main.cpp:5: undefined reference to `SSL_load_error_strings'
/usr/bin/x86_64-w64-mingw32-ld: CMakeFiles/_.dir/objects.a(main.cpp.obj): in function `main':
_/src/main.cpp:6: undefined reference to `SSL_library_init'

but everything works well when compiling with just gcc on linux for linux, the error only occurs when crosscompiling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions