mahyar
mahyar

Reputation: 107

Visual studio 2010, include openssl problem

I used :

#include <openssl/ssl.h>

in vs 2010 and have a problem with it. The compiler could not recognized it. How could I include it?

Upvotes: 0

Views: 546

Answers (1)

Kashyap
Kashyap

Reputation: 17401

A simple rule of thumb to check if your options/code are okay or not is to remember the way compiler (actually the pre-proccessor) handles #includes. Quite simply:

for every #included file xxx/yyy.h
    for every include path inc_path specified (e.g. via -I)
        if inc_path/xxx/yyy.h exists
            // found;
            // break;
if not found
    // error

so either "xxx" is wrong, or inc_path is not part of your build options.

Upvotes: 1

Related Questions