Compiler/Human error.
Started by ImTheMessenger, Feb 14 2010 06:19 PM
12 replies to this topic
#1
Posted 14 February 2010 - 06:19 PM
so i was reading a book about programming and i decided to give some of the code a try... i write the code give it the extension then after a brief search released that this computer didn't have the c++ compiler that i needed. So i got the Borland compiler which was simple enough then after installing it to its default directories and making the necessary files, ilink32.cfg and bcc32.cfg, i go to cmd and try to compile the file i try to compile gets this error
"C:\Windows\System32>c:\borland\bcc55\bin\bcc32.exe c:\users\Admin\Desktop\untitled-1.cpp
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
c:\users\Admin\Desktop\Untitled-1.cpp:
Error E2133: Unable to execute command 'ilink32.exe'" so i'm wondering what went wrong?
"C:\Windows\System32>c:\borland\bcc55\bin\bcc32.exe c:\users\Admin\Desktop\untitled-1.cpp
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
c:\users\Admin\Desktop\Untitled-1.cpp:
Error E2133: Unable to execute command 'ilink32.exe'" so i'm wondering what went wrong?
|
|
|
#2
Posted 14 February 2010 - 06:33 PM
Is that program in the path?
I used to like that compiler; why did you grab that instead of Code::Blocks+gcc? Or the MS compiler? Those are the two most-commonly used IDE/compilers I've observed these days.
I used to like that compiler; why did you grab that instead of Code::Blocks+gcc? Or the MS compiler? Those are the two most-commonly used IDE/compilers I've observed these days.
#3
Posted 15 February 2010 - 02:12 PM
dcs said:
Is that program in the path?
I used to like that compiler; why did you grab that instead of Code::Blocks+gcc? Or the MS compiler? Those are the two most-commonly used IDE/compilers I've observed these days.
I used to like that compiler; why did you grab that instead of Code::Blocks+gcc? Or the MS compiler? Those are the two most-commonly used IDE/compilers I've observed these days.
Well since i have vista , the code blocks+gcc compiler aren't an option there are newer version that i could download but its a lot more complicated then the borland installation. Then there's the fact that i don't have a problem with the file path its that every time that i try to compile it says it has a problem connecting to ilink32.exe and i've never heard of the MS compiler.Plus i like borland simply cause it's extremely to use (people complicate the installation not the software)
#4
Posted 15 February 2010 - 02:27 PM
ImTheMessenger said:
Well since i have vista , the code blocks+gcc compiler aren't an option there are newer version that i could download but its a lot more complicated then the borland installation.
A setup.exe???
ImTheMessenger said:
i've never heard of the MS compiler.
[edit]From a quick search:
Download and Install Borland's C++ Compiler
Quote
Two mystery configuration files need to be created
First, we need to be sure that two configuration files called BCC32.CFG and LINK32.CFG are located in this folder
C:\BORLAND\BCC55\BIN
BCC32.CFG needs to contain these two lines
-I"C:\BORLAND\BCC55\INCLUDE"
-L"C:\BORLAND\BCC55\LIB"
and LINK32.CFG file needs to contain this line
-L"C:\BORLAND\BCC55\LIB"
You have several choices here.
You can create these files yourself, using Notepad to carefully write the lines I've included here, and then save them in the correct folder.
You can open Notepad, then copy and paste the lines I've included here into Notepad, then save the two files in the correct folder.
Or, you can just right-click your mouse on these two file names, BCC32.CFG and LINK32.CFG --- when you do, select 'Save Target As; and save them in the correct folder.
First, we need to be sure that two configuration files called BCC32.CFG and LINK32.CFG are located in this folder
C:\BORLAND\BCC55\BIN
BCC32.CFG needs to contain these two lines
-I"C:\BORLAND\BCC55\INCLUDE"
-L"C:\BORLAND\BCC55\LIB"
and LINK32.CFG file needs to contain this line
-L"C:\BORLAND\BCC55\LIB"
You have several choices here.
You can create these files yourself, using Notepad to carefully write the lines I've included here, and then save them in the correct folder.
You can open Notepad, then copy and paste the lines I've included here into Notepad, then save the two files in the correct folder.
Or, you can just right-click your mouse on these two file names, BCC32.CFG and LINK32.CFG --- when you do, select 'Save Target As; and save them in the correct folder.
#5
Posted 15 February 2010 - 05:10 PM
Well i guess it was link32.cfg instead of ilink32.cfg however now i get this
so i assume these errors are related but now the problem what's screwed up with this now?
Quote
Microsoft Windows [Version 6.0.6001]
Copyright © 2006 Microsoft Corporation. All rights reserved.
C:\Windows\System32>bcc32 c:\users\admin\desktop\First.cpp
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
c:\users\admin\desktop\First.cpp:
Turbo Incremental Link 5.00 Copyright © 1997, 2000 Borland
Fatal: Could not open First.exe (error code 5)
C:\Windows\System32>
Copyright © 2006 Microsoft Corporation. All rights reserved.
C:\Windows\System32>bcc32 c:\users\admin\desktop\First.cpp
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
c:\users\admin\desktop\First.cpp:
Turbo Incremental Link 5.00 Copyright © 1997, 2000 Borland
Fatal: Could not open First.exe (error code 5)
C:\Windows\System32>
#6
Posted 15 February 2010 - 05:49 PM
Run the compiler from the directory containing the source file?
I dunno.
Quote
D:\projects\misc\c>path
PATH=D:/Programs/CodeBlocks/MinGW/bin;D:\/Programs/LINT;D:\Programs\Borland\bcc55\bin
D:\projects\misc\c>\Programs\Borland\BCC55\Bin\bcc32.exe -I\Programs\Borland\BCC55\include main.c
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
main.c:
Warning W8057 main.c 9: Parameter 'argc' is never used in function main
Turbo Incremental Link 5.00 Copyright © 1997, 2000 Borland
D:\projects\misc\c>
PATH=D:/Programs/CodeBlocks/MinGW/bin;D:\/Programs/LINT;D:\Programs\Borland\bcc55\bin
D:\projects\misc\c>\Programs\Borland\BCC55\Bin\bcc32.exe -I\Programs\Borland\BCC55\include main.c
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
main.c:
Warning W8057 main.c 9: Parameter 'argc' is never used in function main
Turbo Incremental Link 5.00 Copyright © 1997, 2000 Borland
D:\projects\misc\c>
Edited by dcs, 15 February 2010 - 05:57 PM.
Removed stuff about headers and paths and IDEs.
#7
Posted 19 February 2010 - 03:35 PM
WEll now i'm sorta over that error , however with that comes a new one i get this
when i try to compile this code
Quote
C:\Windows\System32>bcc32 c:\users\admin\desktop\calculator.cpp
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
c:\users\admin\desktop\calculator.cpp:
Turbo Incremental Link 5.00 Copyright © 1997, 2000 Borland
Fatal: Could not open calculator.exe (error code 5)
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
c:\users\admin\desktop\calculator.cpp:
Turbo Incremental Link 5.00 Copyright © 1997, 2000 Borland
Fatal: Could not open calculator.exe (error code 5)
#include <iostream.h>
void calc()
{
float num1;
float num2;
char op;
float ans;
cout << "Simple calculator Application" << endl;
cout << " Enter two numbers and perform an operation." << endl;
cout << "Enjoy!" << endl;
cout << "-------------------------" << endl;
cout << " Enter the first number and press ENTER: " << endl;
cin >> num1;
cout << " Enter the second number and press ENTER: " << endl;
cin >> num2;
cout << "You Entered " << num1 << " and " << num2 << endl;
cout
<< "Press A followed by ENTER to add the two numbers."
<< endl
<< "Press S followed by ENTEr to subtract the two numbers."
<< endl
<< "Press M followed by ENTER to multiply the two numbers."
<<endl
<< "Press D followed by ENTER to divide the two numbers."
<<endl;
cout << "-------------------------" << endl;
cin >> op;
if ( op == 65 )
{
ans = num1 + num2;
}
if ( op == 83 )
{
ans = num1-num2;
}
if ( op == 77 )
{
ans = num1 * num2;
}
if ( op == 68 )
{
ans= num1 / num2;
}
cout << " the answer is " << ans << endl;
cout <<"Thanks for using the calculator. " << endl;
cout << "Aplplication now exiting ... " << endl;
}
void helpsystem()
{
char op;
cout << "Help System" << endl;
cout << "---------- " << endl;
cout << " To work this application you enter two numbers and then choose " << endl;
cout << "Whether you want those numbers added together, subtracted, " << endl;
cout << "multiplied, divided. You choose this operation by inputting" << endl;
cout << "A,S,M,D, respectively" << endl;
cout <<" The result is displayed on screen " << endl;
cout <<"Are you ready to use this application? " << endl;
cout <<"Press Y followed by ENTER to continue " << endl;
cout <<"Press N followed by ENTER to exit " << endl;
cout <<" Press ? followed by ENTER for help" << endl;
cin >>op;
if (op == 89)
{
calc ();
}
if (op == 63)
{
helpsystem ();
}
if (op == 78)
{
}
}
void main()
{
char op;
cout << "Simple calculator Application" << endl;
cout << " Enter two numbers and perform an operation." << endl;
cout << "Enjoy!" << endl;
cout <<"Are you ready to use this application? " << endl;
cout <<"Press Y followed by ENTER to continue " << endl;
cout <<"Press N followed by ENTER to exit " << endl;
cout <<" Press ? followed by ENTER for help" << endl;
cin >>op;
if (op == 89)
{
calc ();
}
if (op == 63)
{
helpsystem ();
}
if (op == 78)
{
}
}
i'm still getting fatal error :(
Edited by ImTheMessenger, 19 February 2010 - 03:49 PM.
Fixed some glaaring mistakes and added an old problem
#8
Posted 19 February 2010 - 03:48 PM
Don't use borland.
#9
Posted 19 February 2010 - 03:50 PM
MeTh0Dz said:
Don't use borland.
Why not? and what do you recommend me replacing it?
#10
Posted 19 February 2010 - 03:51 PM
It's crap.
Use MingW or the Microsoft compiler.
Use MingW or the Microsoft compiler.
#11
Posted 19 February 2010 - 03:56 PM
MeTh0Dz said:
It's crap.
Use MingW or the Microsoft compiler.
Use MingW or the Microsoft compiler.
MingW is crap and Microsoft takes too long.. plus untill i started using Vista i've never had problems with borland which is great.
#12
Posted 19 February 2010 - 05:33 PM
ImTheMessenger said:
MingW is crap and Microsoft takes too long.. plus untill i started using Vista i've never had problems with borland which is great.
Borland is infinitely more **** than MingW. And saying Microsoft takes too long is irrelevant and doesn't really make sense in this context.
Also someone like you who obviously has very little coding experience shouldn't really be making comments on such thing anyways.


Sign In
Create Account


Back to top









