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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:07:15+00:00 2026-05-31T08:07:15+00:00

If I want to compile a program that is written in Ada, I have

  • 0

If I want to compile a program that is written in Ada, I have to use GNAT, of course.

As my Computer has Windows as its sole operating system, I cannot use GNAT, normally. Right? Thus I got Cygwin which enables me to use GNAT on Windows.

But the result is an executable that runs under Windows – not Linux. So how can I compile the Ada code for Linux although I only have Windows? (Please don’t think about the reasons …)

Is this possible with Cygwin? Do I have to install a virtual machine with Linux? Or is there another (easier) solution to this issue?

  • 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-31T08:07:16+00:00Added an answer on May 31, 2026 at 8:07 am

    I have to use GNAT, of course.

    Not true; there are other Ada compilers. (GNAT is the only one I know of that’s free.)

    Running GNAT under Cygwin gives you Cygwin executables, which are Windows executables that depend on cygwin1.dll. They will not work on Linux. See the “What … isn’t it?” section on the Cygwin home page.

    There is a GNAT for Windows. The GNAT Pro version has a list of supported platforms here; it includes Linux and Windows, but it doesn’t show a Windows-to-Linux cross compiler.

    Since GNAT is free software (GNAT Pro isn’t is a little more complicated; I won’t get into that) there could well be a Windows-to-Linux GNAT cross-compiler — or, if you’re really ambitious, you could build one yourself (or hire someone to do it for you).

    But installing GNAT on a Linux system is the easiest approach. It doesn’t have to be a virtual machine. If you have the hardware, you can install some Linux system by itself, or you can set up a dual-boot system on your Windows box. Ubuntu has a Windows installer, Wubi, that installs an Ubuntu image as a Windows file; it doesn’t let you run Windows and Ubuntu concurrently, but it lets you dual-boot without having to repartition.

    There are other options; these are just the ones I’m familiar with.

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

Sidebar

Related Questions

I want to compile a "Hello World" MS-DOS exe. Not a program that runs
I want to compile a simple hello-world-style program using the Windows command line. cl
I want to compile C code from the Command Prompt in Windows. I have
I have a program written in c that I compiled (The project structure is
I want to run the Visual Studio debugger on a .Net program that has
I have written a program on Visual C# 2010 Express on Windows 7, 64
I want to compile a simple C program with GCC. What do I need
I want to make a program work and compile in both WIN\Linux . I
I want to compile a tiny actionscript file. Is there something out there that
I'm trying to compile OCR 0.4, an optical recognizing program by Google. As written

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.