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 6708405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:45:20+00:00 2026-05-26T07:45:20+00:00

Is it possible to compile c++ without any lib? Because when i was trying

  • 0

Is it possible to compile c++ without any lib?
Because when i was trying to compile my program with Mingw and cygwin after the .exe file was made i couldn’t run it and it said there is a missing library. For cygwin it was “cygwin1.dll”.

  • 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-26T07:45:21+00:00Added an answer on May 26, 2026 at 7:45 am

    Binaries that are build with Cygwin always has dependency on cygwin1.dll. Hovewer, if you want to avoid this, use linker option -mno-cygwin. This way you’ll make sure that there will be no dependency on cygwin runtime library that you need to ship with your app.

    MinGW has some local dependencies too. In particular, libgcc_s_dw2-1.dll(depends on what unwinding type is used in your toolchain) and mingwm10.dll. To get rid of them, use -static-libgcc and -mthreads options for your linker. Please note that C++ exceptions depends on this option.

    Small note, however. Your question – “Is it possible to compile c++ without any lib?” is incorrect, since there are always some dependencies on libs (unless you are building binary for barebone hardware w/o OS), for example user32.dll for Windows. Sure, nor Cygwin nor MinGW is suitable for that.

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

Sidebar

Related Questions

Question: Is it possible to compile a program on linux using a .dll file?
Is it possible to compile and run OpenGL programs from under Cygwin? If yes,
I'd like to know if it's possible to compile an .swf file at runtime
Is it possible to use Runtime.getRuntime().exec(cmd.exe); in gwt? When I compile it, I get
I was wondering if it was possible to compile, and run stored code, without
Is it in anyway possible ( preferably without using any third party libs), to
Is it possible to enter an infinite loop at compile time? My program seems
Is it possible to compile a linux kernel(2.6) module that includes functionality defined by
Is it currently possible to compile Python and PyObjC for the iPhone such that
Is it possible to compile a ASP.NET web application to Machine language? If so,

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.