A day before i have found a new way to use our turboc compiler. and today i will share how to compile program by this new way(Turboc Without IDE Environment)..
actually i was working on turboc compiler at my office. Out of 10 persons came near my cabin 9 persons asked "What are you doing sir.....??" and its understood when a non-familiar person will look a green screen with colorful words, he must ask what are you doing and some of them thought im just playing a game. then i thought it should be a way to compile our instructions without that green screen which we ask IDE environment. Then i search over the internet about c/c++ compiler..i have found so many compilers. but i download Borland Compiler 5.5. After installation i could not access the compiler then i read its documentary and found some instructions about using the same....
during compiling it can access by placing a command bcc -P programme.cpp by relying on the same directory
then i see the folder turboc in my C:\ Drive . it has also a same executable file as on Borland's Compiler..named tcc.exe
then i try same method on turboc and found the new way to compiling without IDE environment(without green screen). some persons who read this post are professionals in this language and they knew this method. but im newly familiarized with this method so going to share. guys i have not copy pasted any of single line from any where. the whole topics is written and tested by me .if anyone found any mistake and want to suggest about or want to give some comments can reply the same...you comments are welcome.
Method is listed below:
1. Move to the directory where you turboc is existing.
2. find the file name turboc.cfg
3. open turboc.cfg file with the help of notepad
4. you will see some commands written under it. like
-I C:\TC\INCLUDE
-L C:\TC\LIB
5. replace it with
-I C:\TURBOC\
-L C:\TURBOC\
Note: C:\TURBOC\ is my parent directory from where i use my IDE TC. you may be some different. plz check what is you parent directory for turboc.
Above commands explanation:
-I C:\TC\INCLUDE -I is a switch which tells the compiler to include headers and header files following by destination directory
-L C:\TC\LIB -L is also a switch which tell the location of library following by the address.
we replaced both include directory and library directory to our parent directory of turboc.
6. search for the file thelp.cfg
7. replace the whole command with
/f C:\TURBOC\TCHELP.TCH
8. now your configuration process is over now it tiime to move on compilization
9. you may also use readme.com file for help and clarification from parent diretory for any type of help
10. so let us start writing a program through command line and compile by using the same.
Writing a programm using command line in C or C++
1. open run from start menu
2. type cmd and press enter
3. move to the directory of turboc
4. type copy con file_name.extension i have used satpal as file name and .c as extension. copy con command will make a file
5. now type your code below as like in image
6. to save your file press ctrl+z (control key + Z ) and press enter
7. now type command tcc satpal.c
8. press enter (compiler will compile the code) and shows the errors if any
9. to execute the same just type your program name or program_name.exe and press enter
or
10. congrats frnds we have done it...
Note: now you may ask this is a difficult way than IDE environment. but i share this one becoz i like this black and white screen not that colorful screen where each and every thing is done by drag and drop...
Think different, Do different, then every one appreciates you...
any query or any type of comments will be appreciated
Thanks & Regards
Satpal Singh








copy con fooby..first time I've heard of this, kinda like cat > fooby in *nix, nice
ReplyDelete