I downloaded borland compiler but I dont know how to use it can someone help me

Dani AI

Generated

Short, practical notes for . Which instructions apply depends on the exact Borland package you downloaded: a command‑line Borland C++ compiler (bcc32) or the C++Builder IDE. pointed to a tutorial already; below is a minimal, hands‑on recipe, quick fixes, and a few tips that address ’s exe‑size complaint and /’s comments.

Save this file as hello.cpp:

#include <iostream>

int main()
{
    std::cout << "Hello, world!" << std::endl;
    return 0;
}

If you installed the command‑line compiler, open a Windows Command Prompt, make sure the compiler’s bin folder is on your PATH (or use the full path to bcc32.exe), then compile:

bcc32 hello.cpp

That produces hello.exe which you run by typing hello (or hello.exe). If you have C++Builder IDE, create a new Console Application, paste the code, then Build and Run.

Why EXEs can be large (answering ): debug symbols and static linking of the runtime inflate sizes. To shrink binaries, build the Release configuration, disable debug information, enable optimizations, and let the linker remove unused code (look for “Smart linking” or similar). Where available, link to the dynamic runtime (DLL) instead of statically linking the RTL. If you need exact menu names or flags your version supports, consult your product documentation.

Troubleshooting quick hits: if bcc32 is unknown, add the compiler bin folder to PATH; if compile errors appear, check file extension .cpp, correct includes (e.g., <iostream>), and use std::cout or using namespace std;. If Borland feels awkward, lightweight alternatives include MinGW/Code::Blocks or Visual Studio Community. For historical/context info on Borland/C++Builder see Borland C++ and C++Builder.

Recommended Answers

All 4 Replies

Borland SUX, sorry Borland but exe size is way too huge. USE ICL

am perfectly fine with my dev c++ , I really don't understand ( probably never will ) why borland compilers are so complicated to install and run

I like Borland, of course i have never used anything else. it was the program i first got and the one that i am learning with so i understand it somewhat (the exe thing i have no idea what other file types it will save as aswell but i bet i can find a way to save it as another one)

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.