Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6084179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:29:27+00:00 2026-05-23T11:29:27+00:00

I am trying to link my c++ program against the libcrypto library, using Cygwin

  • 0

I am trying to link my c++ program against the libcrypto library, using Cygwin and Windows.

I have this in my .cc file

#include <openssl/dh.h>

I have the header file dh.h in usr/include/openssl

And I have the required files (libeay32.dll and ssleay32.dll) in /usr/lib/ however, when I build (using the python build tool node-waf), I get errors such as undefined reference to _DH_new

I have tried various things in the cxxflags section of the build script, which now looks like this:

ppp.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall", "-L/usr/lib", "-lssl","-llibeay32","-lssleay32"]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:29:28+00:00Added an answer on May 23, 2026 at 11:29 am

    Libcrypto.so is Linux’s dynamically linked library.
    According to this on Windows You need to use libeay32.a and ssleay32.a.
    If that doesn’t work You have to make your own library from OpenSSL source.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to statically link against a C++ library called Poco on Windows
Using glew, I'm trying to link the simple program #include </usr/include/GL/glew.h> int main (int
I'm using CodeBlocks and trying to link SDL_ttf when compiling my program. I have
I get this error when trying to link a win32 exe project. I have
I'm using minGW on windows, trying to compile a c++ program. I've used sockets
So I have this small application of mine I'm trying to deploy using visual
Hey Folks i am trying to compile this C++ program: #include <stdio.h> #include <string.h>
I am trying to make my autotools project in C++ link against library, that
I am trying to link a C++ module using GCC, essentially like this: gcc
I am trying to run a simple ruby program on windows platform using 'tk'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.