View Full Version : Ditch Turbo C++ use Relo !
Zeeshan Quireshi
14-08-2007, 11:23 AM
Guys , there must be many of u studying in school or college who have to use Turbo C++ because the new compilers won't compile the old format code or they don't include the borland specific-haders and the most important , that Turbo C++ being a 16 Bit aplication does not work under Windows XP/2000 .
Here's an alternative to TC that will compile the old format code just fine under windows XP and into a 32 bit executable .
Here's how u can use Borland's FREE C++ Compiler along with the Relo IDE[i use it myself for school program testing ] :
1. Get Borland's Free C++ Compiler Here
http://dn.codegear.com/article/20633
2. Download the Free Relo IDE Here
http://www.fifsoft.com/relo/
3. Now Install Borland's Compiler First n then Relo IDE , it will ask u for Compiler Path during setup , just provide the path where u installed Borland's Compiler n that's it, u have yor Development Enivronment Set-up and ready to Go .
http://farm2.static.flickr.com/1073/1111520417_76023e1cc7.jpg (http://farm2.static.flickr.com/1073/1111520417_511a4e87ef_o.jpg)
Relo has a much better Code Editor than TC , and supports a mouse too ;)
Charan
14-08-2007, 01:24 PM
Thanks for the info Zeeshan
sagargv
14-08-2007, 10:02 PM
thanks a lot .
REY619
14-08-2007, 11:04 PM
Great!! Thanks! ;)
a_k_s_h_a_y
14-08-2007, 11:23 PM
how about dev C++ that's also good !
how about dev C++ that's also good !
yeah bloodshed ev c++ is equally good.
and i hate turbo C (used MS Visual c++ instead)
Pathik
15-08-2007, 12:17 AM
but dev c++ doesnt compile code by the old standards.. So there may be diffs in the code we study and the one we write.. This borland+relo is just for study purposes
sachin_kothari
15-08-2007, 12:20 AM
will this work on vista x64?
i used tc 3.0 on win xp which does not works on vista x64.
casanova
15-08-2007, 12:51 AM
Nice info. Thx
but dev c++ doesnt compile code by the old standards.. So there may be diffs in the code we study and the one we write.. This borland+relo is just for study purposes
agree with u
but turbo c is not according to ANSI C standard, so lots of header files are obsolete now.
BBThumbHealer
15-08-2007, 11:30 AM
Thnx Zeeshan ! :)
asnvin
15-08-2007, 11:40 AM
Thanx. Hate to use Turbo C++
Zeeshan Quireshi
15-08-2007, 08:09 PM
will this work on vista x64?
i used tc 3.0 on win xp which does not works on vista x64.
Yes it will run fine , i have tried it myself :)
src2206
17-08-2007, 08:03 PM
Isn't the Linux distros like include GCC, which can compile C++ codes? Can it compile old codes too?
I know its a mundane question, but I'm planning to get my hand dirty with programing. :D
a_k_s_h_a_y
17-08-2007, 08:37 PM
cool trying it out.....what incase if this turns out much cool !!
btw in dev C++ in compiler options there are options to support traditional aspects and ANSI standards completely !
rakeshishere
17-08-2007, 08:47 PM
Thnx Zeeshan :)..Just what the doctor ordered :D
a_k_s_h_a_y
17-08-2007, 08:48 PM
jus checked it out i find the dev C++ interface good !!
got to download borland compiler !
Zeeshan Quireshi
18-08-2007, 01:18 PM
jus checked it out i find the dev C++ interface good !!
got to download borland compiler !
Have a look At VIsual C++ Express if you wanna do Standard C++ Programming .
it's much better than DevC++(Which is now an abandoned project n no more updates r being made)
int86
20-08-2007, 09:47 PM
Need some help.
I did what was told.
but how to do a C program, the same way we do in Turbo C.
It gives some error while compiling.
hey how to compare three integers in C++.........I want to find the smallest no among three digits...........
Zeeshan Quireshi
21-08-2007, 08:21 PM
hey how to compare three integers in C++.........I want to find the smallest no among three digits...........
you could use If statements or else you could take them in an array , sort them in ascending order n then take the first element .
Buddy I am New To C++..
I would be thankful if u could post the code........By using if statement.......
praka123
22-08-2007, 02:05 PM
Isn't the Linux distros like include GCC, which can compile C++ codes? Can it compile old codes too?
I know its a mundane question, but I'm planning to get my hand dirty with programing. :D
ofcorz.gcc is better.u can get Anjuta GUI for c/cpp programs and gcc complies well with latest standards ISO,ANSI:rolleyes:.Yes Linux is best for programming not only c,c++ -java,.net(mono) and perl,python and a lotta options.even VS.net ppl are woed a lot by qt libs of trolltech.
Zeeshan Quireshi
22-08-2007, 03:53 PM
ofcorz.gcc is better.u can get Anjuta GUI for c/cpp programs and gcc complies well with latest standards ISO,ANSI:rolleyes:.Yes Linux is best for programming not only c,c++ -java,.net(mono) and perl,python and a lotta options.even VS.net ppl are woed a lot by qt libs of trolltech.
i Guess you didn't read the first post !
it's specially for those who want to compile old code with borland specific libraries that are taught in school .
praka123
22-08-2007, 06:47 PM
^ I think the answer includes that too(old gcc versions)
MS32DLL.DLL.VBS
23-08-2007, 01:00 AM
THanX............4 da info Zeeshan
src2206
23-08-2007, 09:22 AM
ofcorz.gcc is better.u can get Anjuta GUI for c/cpp programs and gcc complies well with latest standards ISO,ANSI
Thank you vary much for the info :). Could you please explain what is Anjuta GUI? Is it available in debian?
Basically I am not in IT, and I plan to learn programing just as a hobby, long back I learnt a little bit of C, but never really to got the time to shrpen my skills.
Zeeshan Quireshi
23-08-2007, 03:22 PM
Thank you vary much for the info :). Could you please explain what is Anjuta GUI? Is it available in debian?
Basically I am not in IT, and I plan to learn programing just as a hobby, long back I learnt a little bit of C, but never really to got the time to shrpen my skills.
Well Anjuta is a free C++ IDE(Intergtrated Development Environment) although you probably won't need it for basic C/C++ programming as Gedit or Kate will work just fine :)
Also , i suggest that if you're gonna start out with programming Learn a Language like C# or Java instead of C/C++ .
src2206
23-08-2007, 05:42 PM
Well Anjuta is a free C++ IDE(Intergtrated Development Environment) although you probably won't need it for basic C/C++ programming as Gedit or Kate will work just fine :)
Thank you very much Zeeshan :)
Also , i suggest that if you're gonna start out with programming Learn a Language like C# or Java instead of C/C++ .
Would you mind telling me what is the difference between C# (I'm not sure how do you pronounce it) and C/C++? Thank you for the suggestion still :). In this context, I remeber that one of my programer friend told me to learn Java because it also provides a lot of freelance oppertunity? Is that true? I have a steady job, so I can devote quality time in learning Java and freelance oppertunity will surely be an extra motivational boost :D.
praka123
23-08-2007, 06:09 PM
Thank you vary much for the info :). Could you please explain what is Anjuta GUI? Is it available in debian?
Basically I am not in IT, and I plan to learn programing just as a hobby, long back I learnt a little bit of C, but never really to got the time to shrpen my skills.
Yes,it is available in Debian.just use synaptic or apt-get install anjuta.dont use source compiling etc.FYI Anjuta(written by an Indian) home @:
Anjuta is a versatile IDE for C and C++, written for GTK/GNOME. Features include project management, application wizards, an onboard interactive debugger, and a powerful source editor with browsing and syntax highlighting.
http://anjuta.sourceforge.net/
src2206
23-08-2007, 06:14 PM
Thank you praka123
navjotjsingh
23-08-2007, 06:56 PM
Two things Zeeshan
If TC does not run on your XP then there is problem with your XP not TC.
TC Supports mouse. Alteast TC 3.0 does.
I am not supporting or arguing for TC but just clearing things about TC.
Sukhdeep Singh
23-08-2007, 07:26 PM
Thanks Zeeshan.
I failed in getting this to work. It gives me ERROR :( Can you please help me in configuring this :)
http://img214.imageshack.us/img214/4286/image1aa3.jpg (http://imageshack.us)
http://img214.imageshack.us/img214/7492/image2zv5.th.jpg (http://img214.imageshack.us/my.php?image=image2zv5.jpg)
Zeeshan Quireshi
23-08-2007, 10:30 PM
well this problem crops up a lotta times with borland compilers .
Try making a new "Console" project n then recompiling it . If it does not help then check "Use ILINK32" + "Add Compiler inc/Lib dir" in Tools->Options->Project .
Sukhdeep Singh
24-08-2007, 09:50 PM
well this problem crops up a lotta times with borland compilers .
Try making a new "Console" project n then recompiling it . If it does not help then check "Use ILINK32" + "Add Compiler inc/Lib dir" in Tools->Options->Project .
Tried that bro, Didnt work :(
ratedrsuperstar
25-08-2007, 10:14 PM
atleast tell me how to make the original tc run without relo none of the exec. in bin run and there aint a tc.exe also
src2206
25-08-2007, 10:19 PM
Hello Parka123 and Zeeshan
Just to inform you that I have installed Ajunta in Ubuntu.
Thank you everyone.
praka123
25-08-2007, 10:30 PM
^Best of Luck in programming!
src2206
25-08-2007, 11:38 PM
Thank you parka123...
BTW, could you recommend any good free e books for beginner like me? I have one book on C written by Kanitkar, but none on Java or C#. C++ etc
cynosure
25-08-2007, 11:53 PM
^ Free ebooks are hard to find for languages like c/c++. I searched a lot but there arent any.:(
But free ebooks of languages like python do exist (just in case :) ), I remember downloading it once. But neither I have that book now, nor the link.:*(
prankie
26-08-2007, 10:08 AM
when i try to open previously saved files, it compiles them succesfully but when i run them it just opens them on notepad..
http://img209.imageshack.us/img209/6527/a1ka2.th.jpg (http://img209.imageshack.us/my.php?image=a1ka2.jpg)
Compiled succesfully!!
http://img209.imageshack.us/img209/7959/a2cw4.th.jpg (http://img209.imageshack.us/my.php?image=a2cw4.jpg)
Openin in notepad..
Zeeshan Quireshi
26-08-2007, 08:36 PM
mate , i think you're tryin to Run the Source file .
like if the code is in File.cpp then the compiled executable will most probably be File.exe , try runnin the Executable file :)
int86
26-08-2007, 11:32 PM
@sukhdeepsinghkohli
I think this should help..
Quiz_Master
27-08-2007, 12:53 AM
I use DEV C++ and I am satisfied with it...
Gotta try this one though...
Just for R&D purpose. :D
eggman
15-11-2007, 05:47 PM
Sorry for BUMPING but ............
During compilation it says:
UNABLE TO OPEN FILE 'STDIO.h'
[xubz]
15-11-2007, 05:55 PM
Sorry for BUMPING but ............
During compilation it says:
UNABLE TO OPEN FILE 'STDIO.h'
You didn't read the Readme that came with the Compiler did you? :rolleyes:
Installing and running the Command Line Tools
-----------------------------------------------
1. Run freecommandlinetools.exe; choose the
drive and folder into which you want to
install the free C++Builder 5 command line
tool development system.
2. From the bin directory of your installation:
a. Add "c:\Borland\Bcc55"
to the existing path
b. Create a bcc32.cfg file which will set
the compiler options for the Include
and Lib paths (-I and -L switches to
compiler) by adding these lines:
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"
c. Create an ilink32.cfg file which will set
the linker option for the Lib path by
adding this line:
-L"c:\Borland\Bcc55\lib"
Do that. (Always RTFM!)
eggman
15-11-2007, 07:01 PM
After youe suggestion, it doesnt show any error during Compilation...........but during RUN it shows:
http://img404.imageshack.us/img404/4346/shitoe2.jpg
any solution?
QwertyManiac
15-11-2007, 07:04 PM
Your printf spelling is wrong :lol:
eggman
15-11-2007, 08:34 PM
Your printf spelling is wrong :lol:
My bad........hehe
:)) :))
But even after correcting the blunder the 2nd error :COULDN'T OPEN remains ........
eggman
17-11-2007, 09:02 AM
Someone help!!!!!!!!
[xubz]
17-11-2007, 09:04 AM
Um. . OK.
Where have you installed the Compiler Set? (Exact Directory Please)
eggman
17-11-2007, 06:00 PM
Thanks [xubz].
Compiler:C:\Borland\BCC55
Relo2:C:\Program Files\Relo2
[xubz]
17-11-2007, 06:02 PM
Did you put the bcc32.cfg and ilink32.cfg in the C:\Borland\BCC55\bin folder?
Sukhdeep Singh
17-11-2007, 07:12 PM
Thanks xubz, finally got this to work.... :)
But when i click Make and RUN....it opens the file in notepad rather than executable :confused:
eggman
17-11-2007, 09:48 PM
']Did you put the bcc32.cfg and ilink32.cfg in the C:\Borland\BCC55\bin folder?
Yes dude. And here are the contents:
bcc32.cfg
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"
ilink.cfg
-L"c:\Borland\Bcc55\lib"
Zeeshan Quireshi
17-11-2007, 11:47 PM
@eggman , i think there are case-differences in the path of compiler n in config file , make them exactly the same case as in the original path.
eggman
18-11-2007, 09:54 AM
@eggman , i think there are case-differences in the path of compiler n in config file , make them exactly the same case as in the original path.
Yes, It was different. But even after ccorrecting the case, the problem is there. :(
°K£l†huzaD°
17-02-2008, 10:53 AM
You need to put your .cfg files in
C:\Borland
and not in your
C:\Borland\BCC55\Bin or anywhere else
The Conqueror
28-02-2008, 01:55 PM
Good tut but dev c++ is excellent.
anyways digging as it may be useful for new members
Zeeshan Quireshi
28-02-2008, 02:11 PM
Good tut but dev c++ is excellent.
anyways digging as it may be useful for new members
I guess you haven't tried Visual Studio 2008 Express (http://www.microsoft.com/express/) or Eclipse (http://www.eclipse.org/) !
Both beat the Hell out of Dev C++ . and besides , it's a dead project now .
speedyguy
01-03-2008, 06:43 PM
i did all stuff but ts not able 2 open include fiiles while compiling.....possible reasons???
Enjoy~!
Zeeshan Quireshi
01-03-2008, 06:45 PM
Where hv you installed the compiler and did you set-up the compiler properties correctly ?
it'd be much easier if you provided a screenshot .
speedyguy
01-03-2008, 06:48 PM
ya sure....i installed compiler n relo in same location....borland's brcc32 compiler to relo in setup....
screenshot of error.....wil send others as required
http://img299.imageshack.us/img299/996/73508325nw5.th.jpg (http://img299.imageshack.us/my.php?image=73508325nw5.jpg)
Enjoy~!
Zeeshan Quireshi
01-03-2008, 07:07 PM
Go to :
Tools -> Options -> Project
and check "Use ILink 32" and "Add compiler inc/lib directory"
speedyguy
01-03-2008, 09:36 PM
sir one mr querry...act i didnt know abt this but m lukin for windows based compiler for c/c++...i had it but lost ts setup....i m using graphics.h commands which cant execute in vista as it does not support full screen dos mode.....any idea or link???
ps: i tried visual c++ bt it has diff type of coding i guess
Enjoy~!
Zeeshan Quireshi
01-03-2008, 11:12 PM
http://www.codegear.com/downloads/free/cppbuilder
Works on Vista .
speedyguy
01-03-2008, 11:51 PM
ok checkin on dat
Enjoy~!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.