Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 4th, 2006, 05:34 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default just beginning programming - pls help

guys, i'm totally new to programming and i'm just following the instructions on the book "Beginning Programming" by Adrian and Kathie.

I have this problem with detecting the borland c++ compiler source file. The source file is located in c:\documents and settings\owner\desktop\programming basics\template.cpp,

The borland compiler is located in: c:borland\bcc55binbcc.exe

therefore, when I compile it, how will i type it in the command prompt window? is it like this?

c:\Documents and Settings\Owner>c:borland\bcc55binbcc.exe c:\documents and settings\owner\desktop\programming basics\template.cpp

The above seems logical but i get an error whenever i do this. what should i do? please help.
Reply With Quote
  #2 (permalink)  
Old September 29th, 2006, 07:59 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Geo121
Default

okay . . .

Above isn't logical . . . but you will learn

first in the command prompt type :

c:\documents and settings\owner>cd desktop\programming basics

this takes you to the location of the file

while at this location you need to enter a link to the compiler
the link will tell your computer that hey my compiler is here =P

so in the command prompt then type:

c:\documents and settings\owner\desktop\programming basics>link="c:\borland"

Then when you are still at the location of the source file

Type into the command prompt:
c:\documents and settings\owner\desktop\programming basics>bcc55binbcc template.cpp

You may have to tell the compiler where the library and reference files are. The location of these changes depending on the compiler. Just let me know how this works or if you have any problems.

P.S. To save yourself time you may want to create a batch file to compile it for you so you don't have to enter all that junk into the command prompt every time you want to compile a program =P

If you don't know how to make a batch file just ask.

Geo121
Reply With Quote
  #3 (permalink)  
Old September 29th, 2006, 08:02 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Geo121
Default

Also I'm a little Hazy about the compiler you are using because the Borland compiler is usually installed and located in "C:\Borland\Bin\BCC55\bcc55.exe" or at least very similar

Geo121
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
I need the code of Beginning Oracle Programming ujumaka All Other Wrox Books 9 January 5th, 2015 02:20 PM
Beginning Graphics Programming Gatesunder C++ Programming 0 January 4th, 2008 06:45 AM
beginning visual basic 6 database programming gskarns1 VB Databases Basics 1 September 29th, 2004 10:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.