Как подключить библиотеку openssl в VS Code?

перепробывал уже все способы и в tasks и в c_cpp_properties

все равно выдает ошибку

  fatal error: aes.h: No such file or directory
        3 | #include <aes.h>
          |          ^~~~~~~
    compilation terminated.

вот сам код

#include <windows.h>
#include <stdio.h>
#include <aes.h>


void parse_pe(const char* file_path) {
    FILE* file = fopen(file_path, "rb");
    if (!file) {
        perror("Failed to open file");
        return;
    }


    IMAGE_DOS_HEADER dos_header;
    fread(&dos_header, sizeof(dos_header), 1, file);


    fseek(file, dos_header.e_lfanew, SEEK_SET);

   
    IMAGE_NT_HEADERS nt_headers;
    fread(&nt_headers, sizeof(nt_headers), 1, file);


    printf("Entry Point: 0x%X\n", nt_headers.OptionalHeader.AddressOfEntryPoint);

    fclose(file);
}


int main(){

    //просто запуск для теста будет ли ругаться на библу или нет
    printf("Hello!");

    return 0;
}

в properties указана папка в IncludePath

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**",
                "C:/OpenSSL-Win64/include/openssl",
                "C:/OpenSSL-Win64/include"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "windowsSdkVersion": "10.0.22621.0",
            "compilerPath": "cl.exe",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "windows-msvc-x64"
        }
    ],
    "version": 4
}

Причем VS Code не подчеркивает импорт библиотеки, но не компилирует из-за того, что не может найти ее...

Что делать?


Ответы (0 шт):