How to Compile C Programs
In many of my previous posts especially in the VIRUS CREATION section, I have used C as the programming language. If you’re new to C programming and find it difficult to compile the C source codes then this post is for you. Here is a step-by-step procedure to install Borland C++ compiler 5.5 and compile C programs.
How to install Borland C++ compiler
1. Download Borland C++ compiler 5.5 (for Windows platform) from the following link.
http://www.codegear.com/downloads/free/cppbuilder
2. After you download, run freecommandlinetools.exe. The default installation path would be
C:\Borland\BCC55
How to configure Borland C++ compiler
1. After you install Borland C++ compier, create two new Text Documents
2. Open the first New Text Document.txt file and add the following two lines into it
-I”c:\Borland\Bcc55\include”
-L”c:\Borland\Bcc55\lib”
Save changes and close the file. Now rename the file from New Text Document.txt to bcc32.cfg.
3. Open the second New Text Document (2).txt file and add the following line into it
-L”c:\Borland\Bcc55\lib”
Save changes and close the file. Now rename the file from New Text Document (2).txt to ilink32.cfg.
4. Now copy the two files bcc32.cfg and ilink32.cfg, navigate to C:\Borland\BCC55\Bin and paste them.
How to compile the C source code (.C files)
1. You need to place the .C (example.c) file to be compiled in the following location
C:\Borland\BCC55\Bin
2. Now goto command prompt (Start->Run->type cmd->Enter)
3. Make the following path as the present working directory (use CD command)
C:\Borland\BCC55\Bin
4. To compile the file (example.c) use the following command
bcc32 example.c
5. Now if there exists no error in the source code you’ll get an executable file (example.exe) in the same location (C:\Borland\BCC55\Bin).
6. Now you have successfully compiled the source code into an executable file(.exe file).
NOTE: The above tutorial assumes that you’ve installed the compiler onto the C: drive (by default).
Popularity: 9% [?]
Visitors who read this post, also read:
By using/following this site you agree to our Legal Disclaimer
thank u very much…
Hey man,
I tried every thing, but it gives the error “unable to open include file ’stdio.h’ ” also for all header files
@ sumit
Reinstall your C compiler and configure it properly.
hey great job btw but when i run>cmd and i type C:\Borland\BCC55\Bin is says that it is not an internal/external command.. please help!!
i sort of get lost after how to configure it
hey srikant I am not able to compile files as it giving me so many errors during my compiling it So please help me….
@ FoXriDeR
Type “cd\” ENTER
then type “cd C:\Borland\BCC55\Bin” ENTER
This should work!
Great job………….
thanks bro , i hav made it , everyone that shows error use cd command b4 it and it will work.
but i havnt tried it yet im too sacred its my sisters laptop anything happens and im dead lolz
thankz
Ojas
hey srikanth..i have turbo c++ compiler..can i compile this file using it??
i got a error massage about the stdio header file.
warning-unable to open include file “stdio.h”
-L”c:\Borland\Bcc55\lib”
should i have to write the whole line.
plzzzzz help me.
hi skikant.
my frend has got new broadband connection.and all the time he ask me
that is anyone hacking my computer?? how can i know that.
i replied him that i dont know.
so atlast i want to ask you that can you tell me how can my friend
know that someone hacking my friends broadband connection or not
What’s the .c file? I get lost at the part where it tells us to move the .c file to C:\Borland\BCC55\Bin
@ a.j
Yes you can compile.. but it’ll be 16-bit… You need to compile it using a 32-bit to change it’s icon…
nicely done!
keep it up
Hey Shrikant,
I have created a program (using C language)in which I have listed Tables with the help of loops.Can I save this table in *.txt format?
Thanks in advance.Hope I’ll get some help.
Hi. I tried compiling the codes for the usb virus in the cmd promp it said unable to open include file stdio.h. I even tried reinstalling borland and reconfigure it and it still said the same thing and i configured it right because i did exactly what you said. Please help.
Tried to download borland c++ complier but ended up with no downloads available. Any tips from which I can download in an alternative wedsite?
i m not able to install any of turbo c compiler on my pc and can i run block_usb.c on unix putty in hostel.if yes what steps i hav to follow to do this
Why can’t my files be opened on the Borland Compiler I’ve configured it right as far as I know Ive done it about 7 times…. and still get errors.
@ vipan
No the block_usb.c has been coded for windows PC and not for UNIX.
thank you….very..very..very…much..can you suggest me any tutorial or books..so i can advance in creating trojans
Can we run this code in turbo c also or do I have to make some changes to do so and also I would like to know if we can compile and run the code using Ctrl+F9
hey srikant. can u mail me an easy way to create a trojan. i find it hard to make by using c++ way……..
You are genius.I am also a computer expert but I wish if i could become like you.May be in next birth…
very confused…plz break it down into little baby steps for a vista user plzzzzz
i get a .obj file please help!!
Hi Srikanth Keep up the good work.I really like what you are doing could you teach me.Im really interested.i know some basics oc C as we have programs in C in our college.
Hi Srikanth,
I get to the point where you enter the command promt command to compile the file. Whenever I enter “bcc32 example.c” It says that there were 18 errors in compile. And thanks for putting, so much awesome stuff up on the site.
Leave your response!
EMAIL SECURITY »
How to Protect an Email Account from SPAM
Most of us get SPAM every day. Some of us get more and some little. Even a newly created email account will begin to receive spam just after a few days of it’s creation. Many times we …
NETWORK HACKS »
How to Find the IP Address of a Remote Computer
Most of you may be curious to know how to find the IP address of your friend’s computer or to find the IP address of the person with whom you are chatting in Yahoo messenger or Gtalk. …
PC SECURITY »
10 Tips for a Total Online Security
With the sudden rise in the Internet usage across the globe over the past few years, there has also been a rise in the amount of online scams and frauds. Today most of the Internet users are unaware …
VIRUS CREATION »
A Virus Program to Disable USB Ports
In this post I will show how to create a simple virus that disables/blocks the USB ports on the computer (PC). As usual I use my favorite C programming language to create this virus. Anyone with …
XP HACKS »
How to Make Invisible Password Protected Folder
Do you want to password protect your folder? Do you want to make it invisible so that it remains unnoticed by the normal users? Well here is a way to do that. In this post I …
Categories
Blogroll
Recent Comments
Most Commented
Most Popular
Log In | Entries (RSS) | Comments (RSS) | Sitemap | Arthemia Premium theme by Michael Jubel