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

  • Home
  • SEARCH
  • 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 8565395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:25:03+00:00 2026-06-11T17:25:03+00:00

The Dynamic Shared Object library on Linux is approximately equal the dll in Windows.

  • 0

The Dynamic Shared Object library on Linux is approximately equal the dll in Windows. That’s what I found online. But there are some differences and they are explained here: Architecturally what is the difference between a shared object (SO) and a dynamic link library (DLL)?

Then I am confused:

  1. In linux one can use -shared to create a DSO library, then link with -lmylib. But in windows, things are different. One have to add dllexport into the code. Only the “exported” part can be linked (If I am correct). Is there a option to make windows dll link-able without adding dllexport? (I tried to make a dll with just functions and no dllexport, but what I can tell so far is that the dll without dllexport is something useless, right?)

  2. What does MinGW do? I thought it create dlls in the days when I used it. But now I think the library that created by MinGW-gcc -shared is something else. Is it windows version lib.so? Can MSVS/intel compiler do the similar thing?

I am asking these because of cross platform issues. For example, a linux code can be compiled without any changes on windows machine. But if one want to create a dll by using the code (compiled with MSVS) which is equivalent to the .so without modifying code (adding dllexport), it is impossible. Am I right?

  • 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-06-11T17:25:04+00:00Added an answer on June 11, 2026 at 5:25 pm

    Is there a option to make windows dll link-able without adding
    dllexport?

    No, you need dllexport.

    I have no idea what you mean by the second question, sorry.

    Am I right?

    Correct me if I’m wrong but you’re restating your first question. So yes you’re right, you can’t do that. you need dllexport.

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

Sidebar

Related Questions

Suppose that I compiled a dynamic library (Windows DLL and/or Linux shared object file,
I'm trying to quickstart with dynamic shared libraries in D, but I'm having a
What is the difference between static library and relocatable object file? Or between dynamic
I want to use gcc to produce a shared library, but i want to
If I build a shared library (shared object) I can use it in two
I was attempting to use a new library today that I found on the
This is a follow-up to Dynamic Shared Library compilation with g++ . I'm trying
1. Are shared libraries and dynamic libraries the same exact thing? windows just labels
I have one shared library ,Which written in c build using arm-linux-androideabi-gcc compiler now
Dynamic languages are on the rise and there are plenty of them: e.g. Ruby,

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.