Boost logo

Boost :

Subject: Re: [boost] Build: Trying to get Boost.Build to see my OpenSSLonWindows
From: Peter Dimov (lists_at_[hidden])
Date: 2016-10-01 15:10:14


Vinnie Falco wrote:
...
> Notice how "x" doesn't even appear on the command line.

This Jamfile works for me:

OPENSSL_ROOT = C:/Projects/ladym-svn/trunk/src/ladym/openssl-1.0.2d ;
OPENSSL_INCLUDE = $(OPENSSL_ROOT)/include ;
OPENSSL_LIB = $(OPENSSL_ROOT)/lib ;

lib ssl
  :
  : <name>ssleay32MT
  :
  : <include>$(OPENSSL_INCLUDE) <library-path>$(OPENSSL_LIB)
  ;

lib crypto
  :
  : <name>libeay32MT
  :
  : <include>$(OPENSSL_INCLUDE) <library-path>$(OPENSSL_LIB)
  ;

lib user32 ;
lib gdi32 ;
lib advapi32 ;
lib ws2_32 ;

exe client : client.cpp : <library>ssl <library>crypto <library>ws2_32
<library>user32 <library>gdi32 <library>advapi32 ;

where client.cpp is

#include <openssl/ssl.h>

int main()
{
    OpenSSL_add_all_algorithms();

    SSL_load_error_strings();
    SSL_library_init();
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk