robsan
02-01-2008, 10:18 AM
Hi dear NR staff !
I am doing my job using MS VC++ 6.00
My current assignment is Bessel functions, chap 6 bessj function has a call to
numeric_limits<DP>::min();
could you please help me with the link to download the file that I need -->
#include <limits>
or what is the directive in MS VC
thanks in advance
robert
davekw7x
02-01-2008, 02:44 PM
...
#include <limits>
or what is the directive in MS VC
Well, I'm not NR Staff, but I have some experience with different compilers, including MS VC++ Version 6.
If your installation "include" directory doesn't have a file named limits.h (or, maybe LIMITS.H), then your installation is broken. Simply downloading a missing header won't fix a broken installation (unless you, somehow, happened to delete just that one header and nothing else Bad happened). So re-install the entire Visual C++ stuff.
If that header file is there (by either name), and your compiler reports that it can't find it, then you haven't set up your compile environment correctly.
Are you compiling from a command line? If so, then before invoking "cl," you can run VCVARS32.BAT, located in the installation "bin" directory, to (temporarily) set certain system environment variables that tell the compiler where to look. Of course you put your project files somewhere other than in the VC installation directories, right?
On my system (installed some years ago at the default location) the installation "include" directory is "C:\Program Files\Microsoft Visual Studio\VC98\Include" and the installation "bin" directory is "C:\Program Files\Microsoft Visual Studio\VC98\Bin"
Running vcvars32.bat allows me to compile the various NR C and C++ files, including the Bessel function files, (and other C/C++ programs too).
Regards,
Dave
robsan
02-03-2008, 01:42 PM
Dave
Thanks a lot,
your notes are very helpful
regards
rbrt