Hi,
I need to use the borland c++ complier for making my college project.

I use only linux and I am unable find the compiler.


Any help will be much appreciated as I am stuck.

cheers,
Vishal

p.s- Gcc and other compilers are not allowed for the project .

Dani AI

Generated

Short, practical note tied to the thread: needs a Borland-compiled deliverable while working on Linux; already suggested Wine/VM/DOSBox and pointed out the portability benefits of using a different compiler. Most Borland toolchains commonly used in coursework target Windows or DOS and produce Windows executables, so the practical routes are (A) run the Borland compiler inside a Windows environment, (B) try the Windows compiler under a Wine prefix, or (C) use a departmental/class Windows machine — with a few testing and submission details to avoid surprises.

Most reliable (recommended): run a Windows virtual machine and install the Borland compiler there. Minimal checklist: obtain legally licensed Windows media; create a VM (32‑bit if the compiler is old); install the compiler; put sources in a shared folder; compile and test the produced .exe inside the VM; take a VM snapshot before big changes so the environment can be reproduced. Produce a submission bundle that contains source, the compiled binary, and a short build.txt stating the exact compiler exe/name, version, and command-line used — this avoids ambiguity for the moderator.

Lightweight option: try Wine with a dedicated 32‑bit prefix. Example workflow (adapt paths to the actual installer and compiler):

WINEPREFIX=~/.wine_borland WINEARCH=win32 winecfg
WINEPREFIX=~/.wine_borland wine setup-borland.exe
WINEPREFIX=~/.wine_borland wine 'C:\path\to\compiler.exe' source.cpp

Wine can work for many Windows-era Borland installers, but installers or IDEs from very old DOS/Turbo eras may fail; DOS-era compilers are better run under a DOS emulator.

If neither VM nor Wine is possible, using a college Windows machine or a classmate to produce the Borland build is a valid fallback. In all cases include a tiny reproducibility file (compiler name/version, exact command used, and a short test result) with the submission so the moderator can verify which toolchain produced the executable.

Recommended Answers

All 5 Replies

>I use only linux and I am unable find the compiler.
>Any help will be much appreciated as I am stuck.

AFAIK it isn't available for Linux, however you might be able to get it work if you use Wine, or a very outdated Turbo C++ compiler under a DOS emulator.
I personally wouldn't recommend any of the above, but you said that other compilers aren't allowed for this project, could you maybe explain why?
Another option is maybe to run Windows into a Virtual Machine under linux, and then run the Windows version of the Free Borland Compiler on top of that VM (this guide might be helpful then, while installing the compiler) :)

> I use only linux and I am unable find the compiler.
And what are you going to do with the executable when you've compiled your code?

Hi,
My college professor says we must use borland as the projects need to be sent to the moderator and she uses borland. I can't argue with them on this I am the only guy using linux here.

:) thought borland linux version would have had a option for output in linux or windows.

Anyways I think I need to get windows :(

Cheers,
Vishal

Well writing it on Linux using g++ would be a real test of your skill at writing portable software that will compile on ANY compiler.

well maybe but the college does not allow it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.