Archived

This topic is now archived and is closed to further replies.

Mayfair

Borland C++ Compiler Trouble

Recommended Posts

Mayfair    122
I''m trying to learn C++ as a first language, buut I''m having trouble compiling my *.cpp source code files into executables, I''m running Borland C/C++ Compiler version 5.5. I''m not 100% sure exactly whats going wrong, I''m using the syntax: C:\borland\bcc55\bin\bcc32 Myprog.cpp this calls up several errors like "Cannot include file iostream.h" I visited the Borland website to lookup the help files, FAQ''s and full documentation, they suggest using the syntax: C:\Borland\bcc55\bin\bcc32 -If:\Borland\bcc55\include -Lf:\Borland\bcc55\Lib Myprog.cpp but this still doesn''t work (It brings up the same errors), I''ve also tried copying the files it asks for into the same directory (Mistake, got about twety six errors as opposed to just three). Has anyone else come accross this problem ith the Borland compiler? How can I get it to work? PLEEEEEEEEEEAAAAAAAASSSSSEEEE HELP ME! Would be most grateful if anyone can help, thanks in advance. Ally Shiny!

Share this post


Link to post
Share on other sites
tetractys    146
quote:
Original post by Mayfair
I visited the Borland website to lookup the help files, FAQ's and full documentation, they suggest using the syntax:
C:\Borland\bcc55\bin\bcc32 -If:\Borland\bcc55\include -Lf:\Borland\bcc55\Lib Myprog.cpp
but this still doesn't work...


Did you wrote the wrong letter? I think the syntax should be:

C:\Borland\bcc55\bin\bcc32 -IC:\Borland\bcc55\include -LC:\Borland\bcc55\Lib Myprog.cpp

I have a simple 3D engine written for the free BC++ compiler at http://apocalyx.sourceforge.net
(there is even the VC++ version)
If you want to try, a complex makefile to compile all the demos is included as well.

--
leo (coder of APOCALYX)


[edited by - tetractys on August 7, 2003 10:13:33 AM]

Share this post


Link to post
Share on other sites
Mayfair    122
Uhh, for future reference, you can just call me Timmy. THanks tetractys, that did it.

That''s such an obvious mistake, still, could''ve been worse.

Thank you!

Share this post


Link to post
Share on other sites
Greatwolf    125
Did you read the readme.txt file? Just look at the beginning:

quote:

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"







--{You fight like a dairy farmer!}

Share this post


Link to post
Share on other sites