Solved

Numerical Recipes help

Posted on 1998-07-26
2
219 Views
Last Modified: 2010-04-02
I'm looking for someone that has some experience using the Numerical Recipes for C functions  -   I obtained and installed the Numerical Recipes diskette to use some functions.  I copied the nrutil.h and nrutil.c along with the other utility header and source files included in the package onto my hard disk in the \include\ directory but I was unable to compile them.  I'm a beginner at C++ and I cannot follow some of the documentation that accompanies the diskette to understand what I'm doing wrong.  I have Borland Turbo C++, so I tried to enter the command:
 BCC -DANSI -K -mh -w- -c nrutil.c
at the DOS prompt to compile the source code but it gave me "bad command or file".
It says to do this at the command-line which I took as the DOS prompt but maybe I am completely lost on what the command-line is.  If anyone has experience with these numerical recipes functions and can give me some detailed directions on how to get the functions working in my programs I would greatly appreciate it.
0
Comment
Question by:wtc108
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1168686
The command line is just another name for the the dos prompt.
Do you have BCC and its associated executables in your search path?  If not you will have to perform the compilation from within the BCC environment, rather than the command line.  That is, create a project for these files and set the settings for the project that coorespond to the options you were supposed to specify on the command line.  It may take a little experimenting, but you should be able to get it to work.
0
 
LVL 11

Accepted Solution

by:
alexo earned 50 total points
ID: 1168687
"bad command or file" probably means that BCC is not found on your PATH.  Either put the directory BCC resides in in the PATH environment variable or provide a full path to BCC in the command.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question