Blogger Widgets

Borland C++ compiler install လုပ္နည္း


ေနာက္ထပ္တင္ေပးမယ့္ ဗိုင္းရပ္ဖန္တီးျခင္းအပိုင္းေတြအတြက္ ဒီပို႔ကိုတင္ေပးလိုက္ပါတယ္။ ဘာလို႔လဲဆိုေတာ့ ဖန္တီးတဲ့ေနရာမွာ C Programming Languageကို သံုးမွာ ျဖစ္လို႔ပါ။ သိျပီး၊ တတ္ျပီးသားသူေတြအတြက္မဟုတ္ပါဘူး။ C Programming ကို မသိေသးတဲ႔သူေတြနဲ႔ C Programming ကို အခုမွစတင္သင္ၾကားေနသူေတြအတြက္ပါ။ ထံုစံအတိုင္း သူမ်ား post ကို ဘာသာျပန္ျပီးတင္ေပးလိုက္တာပါပဲ။ Borland C++ compiler 5.5 ကို ဘယ္လို install လုပ္မလဲနဲ႔ C Programs ကိုဘယ္လို Compile(ပ႐ိုဂရမ္ ဘာသာစကား တစ္ခုခုျဖင့္ ေရးသားထားေသာ အမိန္႔ညႊန္ၾကားခ်က္ ကို စက္နားလည္ေအာင္ ေျပာင္းလဲေပးရန္ ကြန္ပ်ဴတာပ႐ိုဂရမ္ကို အသံုးျပဳသည္။ဘယ္လိုလုပ္မလဲ ဆိုတာပါ။


Borland C++ compiler ကိုဘယ္လုိ installလုပ္မလဲ

(၁) Borland C++ compiler5.5 ကို ဒီမွာ သြားျပီးေတာ့ေဒါင္းလို႔ ရပါတယ္။

(၂)download လုပ္ျပီးျပီးဆိုရင္ေတာ့ freecommandlinetools.exe ကို run လိုက္ပါ။ သီးျခား location သတ္မွတ္ေပးထားျခင္း မရွိဘူးဆိုရင္ေတာ့ C:\Borland\BCC55 ထဲကို installation လုပ္ပါလိမ့္မယ္။
Borland C++ compile ကို configure[(အျခားပစၥည္းမ်ားႏွင့္ တြဲဖက္သံုးႏိုင္ရန္) သီးသန္႔ စီစဥ္ထားရွိသည္။] ဘယ္လိုလုပ္မလဲ

(၁)Borland C++ compier ကို install လုပ္ျပီးရင္ Text Document ႏွစ္ခု ဖန္တီးလိုက္ပါ။ပထမ new text document.txt ဖိုင္ကိုဖြင့္ျပီး ေအာက္မွာေပးထားတဲ႔ code နွစ္ခုကိုထည့္ေပးလိုက္ပါ။

-l"c:\Borland\Bcc55\include"

-L"c:\Borland\Bcc55\lib"

(၂)ျပီးရင္ အဲဒီ New Text Document.txt ကို bcc32.cfg နဲ႔ rename ေပးျပီး save လိုက္ပါ။ Save as type ေနရာ All files ေျပာင္းေပးဖို႔လိုပါတယ္။

(၃)ျပီးရင္ ဒုတိယ New Text Document(2).txt ဖိုင္ကိုဖြင့္ျပီး ေအာက္က code ကိုထည့္ေပးပါ။

-L"c:Borland\Bcc55\lib"

(၄)code ထည့္ျပီးသြားရင္ ilink32.cfg နဲ႔ saveလိုက္ပါ။ Save as type ကေတာ့ All files ပါပဲ။

(၅)အခုလုပ္ျပီးသြားတဲ႔ ဖိုင္ႏွစ္ခု (bcc32.cfg နဲ႔ ilink32.cfg)ကို copy လုပ္ပါ။ ျပီးရင္ C:\Borland\BCC55\Bin ထဲကိုသြားျပီး paste ေပးလိုက္ပါ။

C source code (.C files) ကိုဘယ္လို compile ျဖစ္ေအာင္လုပ္မလဲ

(၁)ပထမဆံုး .C (example.c) ဖိုင္ ကို compile ျဖစ္လာဖို႔ ေအာက္ပါ location ထဲမွာ သြားထည့္လိုက္ပါ။

C:\Borland\BCC55\Bin

(သင္ compile ျဖစ္ခ်င္တဲ႔ (.c) နဲ႔ save ထားတဲ႔ C source code ကိုဆိုလိုပါတယ္)

(၂)command prompt ကိုဖြင့္လိုက္ပါ။ ( Start>Run>type cmd > Enter)

(၃)ျပီးရင္ C:\Borland\BCC55\Bin\bcc32 example.c ကိုရိုက္လိုက္ပါ။ (CD command ကိုသံုးပါ)

(၄) source code ထဲမွာ error မရွိဘူး ဆိုရင္ေတာ့ (example.exe) ဖိုင္ကို locationတခု(C:\Borland\BCC5\Bin) ထဲမွာေတြ႔ရ မွာျဖစ္ပါတယ္။ကဲ..အခု source code ကို executable file(.exe file)အျဖစ္ compiled လုပ္ျခင္းေအာင္ျမင္သြားျပီးဆံုးသြားပါျပီး။

(Srikanth ရဲ႕ How to Compile C Programs မွ)

0 comments: