Bonjour à tous,

Suite la la création d'une application en C++ l'envoi de data via le réseau doit être chiffré (car on envoie pas les mots de passes en clair ).
Donc je me suis tourné sur du chiffrement asynchrone (RSA), mais sous windows j'arrive pas a compiler (aucun problème sous linux, comme quoi windows c'est le mal)

bref, voici mon CMakeList:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 3.6)
project(The_Heist_Launcher)
 
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_VERBOSE_MAKEFILE ON)
 
IF (WIN32)
    include_directories(${PROJECT_SOURCE_DIR}/lib_includes)
    link_directories(${PROJECT_SOURCE_DIR}/lib)
    find_package(OpenSSL)
    add_definitions(-DNOCRYPT)
 
    if(NOT OpenSSL)
        message("openssl library not found")
    endif()
 
ELSE()
    find_package(SDL2)
    find_package(OpenSSL)
ENDIF()
 
set(SOURCE_FILES main.cpp MainLauncher.cpp MainLauncher.h GuiEditableTextBox.cpp GuiEditableTextBox.h GuiLabel.cpp GuiLabel.h GuiButton.cpp GuiButton.h Net.cpp Net.h Cipher.cpp Cipher.h)
add_executable(The_Heist_Launcher ${SOURCE_FILES})
target_link_libraries(The_Heist_Launcher m SDL2main SDL2 SDL2_ttf ssl crypto)
 
IF (WIN32)
    target_link_libraries(The_Heist_Launcher ws2_32)
ELSE()
ENDIF()
et voici les erreurs:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/isador/CLionProjects/The_Heist_Launcher/lib/libssl.a when searching for -lssl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/isador/CLionProjects/The_Heist_Launcher/lib\libssl.a when searching for -lssl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/isador/CLionProjects/The_Heist_Launcher/lib/libssl.a when searching for -lssl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lssl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/isador/CLionProjects/The_Heist_Launcher/lib/libcrypto.a when searching for -lcrypto
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/isador/CLionProjects/The_Heist_Launcher/lib\libcrypto.a when searching for -lcrypto
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/isador/CLionProjects/The_Heist_Launcher/lib/libcrypto.a when searching for -lcrypto
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcrypto
collect2.exe: error: ld returned 1 exit status

Merci d'avance pour vos réponse.