dennisnguy
05-18-2002, 02:00 PM
:confused:
Hello,
I wand to call rlft3 function from my application. However I do not use namespace std in my code. When I include "nr.h", my complier (borland c++ 5.02) gave me many errors.
How can I not using namespace std when I include a using namespace std module.
Best regards,
Dennis
Eatsum.com
11-20-2002, 04:25 PM
When a "using namespace std" directive is placed before a friend operator declaration, you may get one of the following two errors:
Case 1
error C2248: [member variable name] : cannot access private member declared in class [class name] [file name] (line number) : see declaration of [member variable]
Case 2
[file name](line number) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information.
Error executing cl.exe.
CAUSE
The friend operator resolution fails in the compiler front-end when std namespace is introduced.
RESOLUTION
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Service Pack 3 for Visual Studio 6.0 that contains this fix.
Bye. (http://www.eatsum.com)