![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2007
Posts: 4
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
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). |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
@OP if you want to fancey console text things use ncurses.
__________________
i dont know much about programming but i try to help |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Oct 2007
Posts: 4
Rep Power: 0
![]() |
loading extensions
how should i load the extensions 4 iostream.h etc.?
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#6 |
|
Retired Programmer
Join Date: Jul 2006
Posts: 45
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#7 |
|
Programmer
Join Date: Oct 2005
Posts: 84
Rep Power: 4
![]() |
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" |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Oct 2007
Posts: 4
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Oct 2007
Posts: 4
Rep Power: 0
![]() |
[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? |
|
|
|
|
|
#10 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
Quote:
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. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|