Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 10th, 2007, 8:22 AM   #1
deepak_pooleery
Newbie
 
Join Date: Oct 2007
Posts: 4
Rep Power: 0 deepak_pooleery is on a distinguished road
Relo and Borland C++

hi

i want 2 know how to link Borland C++ 5.5 & Relo V2. As my 64-bit processor didn't support the old Turbo C++, I referred a forum and they informed me to download Borland C++ compiler tools and Relo, which i did 'perfectly'. i tried linking Relo with the compiler but then it showed errors every time i tried running a program. i linked them using the Compilers option from the Tools tab. I gave Borland as the Name, gave the location of my bin folder in the Path and gave the bcc32 file in the bin folder as the Compiler. The type was set to Borland. But this didn't work and yielded the following erros in the Output:-
---------------------------------------------------------------------------------
[CMD] "D:\Borland\Bin\bcc32" C:\Borland\BCC55\Include -I"D:\Borland\include" -c -o"C:\Borland\BCC55\Bin\Sample.obj" "D:\Borland\Relo2\temp\Sample.cpp"
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2194: Could not find file 'C:\Borland\BCC55\Include.cpp'
D:\Borland\Relo2\temp\Sample.cpp:
Error E2209 D:\Borland\Relo2\temp\Sample.cpp 1: Unable to open include file 'iostream.h'
Error E2209 D:\Borland\Relo2\temp\Sample.cpp 2: Unable to open include file 'conio.h'
Error E2268 D:\Borland\Relo2\temp\Sample.cpp 5: Call to undefined function 'clrscr' in function main()
Error E2451 D:\Borland\Relo2\temp\Sample.cpp 6: Undefined symbol 'cout' in function main()
Error E2268 D:\Borland\Relo2\temp\Sample.cpp 7: Call to undefined function 'getch' in function main()
*** 5 errors in Compile ***
----------------------------------------------------------------------------------
when i referred the readme in the Borland folder, it told me something about creating 2 .cfg files(ilink32.cfg & bcc32.cfg) in the bin folder but then i don't know how create .cfg files from the application files ilink32 & bcc32 in the folder. so can anyone of u there help me in this by sending me ur valuable advices n recommendations.

Let me warn u that I'm purely a novice and anything technical is alien 2 me.

A Confused Soul

N.B.:-Do send ur replies as fast as possible as my C++ project deadline is very close.
deepak_pooleery is offline   Reply With Quote
Old Oct 10th, 2007, 5:41 PM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5 grumpy is on a distinguished road
Don't know anything about relo.

But the error messages from the compile probably indicate the compiler is not finding the directory (sometimes referred to as an "include path") that contains standard or system header files.

Unrelated to your problem, but iostream.h and conio.h are not standard header files (although supported by Borland as an extension).
grumpy is offline   Reply With Quote
Old Oct 11th, 2007, 12:10 AM   #3
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 332
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
Quote:
Originally Posted by grumpy View Post
Unrelated to your problem, but iostream.h and conio.h are not standard header files (although supported by Borland as an extension).
@OP if you want to fancey console text things use ncurses.
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old Oct 11th, 2007, 7:17 AM   #4
deepak_pooleery
Newbie
 
Join Date: Oct 2007
Posts: 4
Rep Power: 0 deepak_pooleery is on a distinguished road
loading extensions

how should i load the extensions 4 iostream.h etc.?
deepak_pooleery is offline   Reply With Quote
Old Oct 11th, 2007, 7:53 AM   #5
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5 grumpy is on a distinguished road
You missed the point. Set up the include path so the compiler can find the header files you've #include's in your code.

If you do that, Borland compilers will find iostream.h and conio.h as they're located in the default directory that contains include files.
grumpy is offline   Reply With Quote
Old Oct 11th, 2007, 1:18 PM   #6
Baphomet
Retired Programmer
 
Baphomet's Avatar
 
Join Date: Jul 2006
Posts: 45
Rep Power: 0 Baphomet is on a distinguished road
I hate borland. I used to use it, but now that I've seen what IDEs like Dev-C++ and Code::Blocks can do for free I will never go back. Besides wxDev C++ has a visual editor that is unlike any other I have ever seen. I use to hate RAD and visual designers because of what they did to code, but I love wxDev-C++. The code it produces isnt perfect, but its the job done quickly and fast. I've made programs that cream the competition in speed.
Baphomet is offline   Reply With Quote
Old Oct 12th, 2007, 3:12 AM   #7
lucifer
Programmer
 
lucifer's Avatar
 
Join Date: Oct 2005
Posts: 84
Rep Power: 4 lucifer is on a distinguished road
well it works nice for me
what settings have you used in the compiler selection option Dialog
__________________
"You're good... but me, I'm magic"
lucifer is offline   Reply With Quote
Old Oct 12th, 2007, 7:05 AM   #8
deepak_pooleery
Newbie
 
Join Date: Oct 2007
Posts: 4
Rep Power: 0 deepak_pooleery is on a distinguished road
i'm back

well lucifer,

i had set the compiler as bcc32 from the \bin folder and the path as D:\Borland\Bin\. the sample program i tried to run is as follows:

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
cout<<"Test successfull!!";
getch();
}

well, can someone using relo rectify the problem 4 me?
deepak_pooleery is offline   Reply With Quote
Old Oct 12th, 2007, 7:09 AM   #9
deepak_pooleery
Newbie
 
Join Date: Oct 2007
Posts: 4
Rep Power: 0 deepak_pooleery is on a distinguished road
[quote=Baphomet;135056]I hate borland. I used to use it, but now that I've seen what IDEs like Dev-C++ and Code::Blocks can do for free I will never go back.

how can i download these free compilers. moreover does the Turbo C++ commands work as well in these also? also, can u specify the size of the installers as i am having a dial-up?
deepak_pooleery is offline   Reply With Quote
Old Oct 12th, 2007, 8:37 AM   #10
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5 grumpy is on a distinguished road
Quote:
Originally Posted by deepak_pooleery View Post
i had set the compiler as bcc32 from the \bin folder and the path as D:\Borland\Bin\. the sample program i tried to run is as follows:

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
cout<<"Test successfull!!";
getch();
}

well, can someone using relo rectify the problem 4 me?
Look for a setting that is called "include path" or something similar, and set it's value to D:\Borland\Include

To use the Borland compiler, from any development environment (relo will be no different), it is necessary to set settings related to;

1) The PATH pointing to the directory the compiler executable lives in, which is D:\Borland\Bin in your setup
2) The name of the executable (bcc32 or C:\Borland\Bin\bcc32 if fully qualified)
3) The include path, where the compiler will find include files, which is probably D:\Borland\Include in your setup.
4) The library path, which is where the linker will find library files when linking: which is probably D:\Borland\Lib

You have set the first two of these. You also need to set the last two.

Try running bcc32 from the command line. With your setup you will find that "D:\Borland\Bin\bcc32 -iD:\Borland\Include -lD:\Borland\Lib <your source file>" should work. That should give a hint of the settings you need in relo, or any other development environment.
grumpy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC