chethanJasi
February 27th, 2008, 03:59 AM
Hi,
(description includes Reply from STLDude of codeguru member)
I have some issues while using SYSTEM NAMESPACE.
Mine is a C++ application running on .NET 2003
when ever i use
using namespace std;
using namespace System;
using namespace System::IO;
i get the error
error C2871: 'System' : a namespace with this name does not exist for using namespace System;
&
error C2653: 'System' : is not a class or namespace name for using namespace System::IO;
but i tried creating a new console application and it works fine.
Reply from STLDude
Member Join Date: May 2007, Posts: 294
Reputation:
Re: error C2871: 'System' : a namespace with this name does not exist
--------------------------------------------------------------------------------
This is not C++ but Managed C++ (clr) and thus needs to be specified in project properties at Configuration Properties/General/Common Language Runtime support. There you will see drop down box with options.
My Reply
Re: error C2871: 'System' : a namespace with this name does not exist
--------------------------------------------------------------------------------
I am not able to find Configuration Properties/General/Common Language Runtime support.
I searched the entier project property but failed to get the above setting.
i am using .NET2003 framework 1.1
and my application is C++
No, that isn't C++. It is Managed C++. If you need more help, there is a Managed C++ forum where you should ask further questions.
Regards,
Paul McKenzie
(description includes Reply from STLDude of codeguru member)
I have some issues while using SYSTEM NAMESPACE.
Mine is a C++ application running on .NET 2003
when ever i use
using namespace std;
using namespace System;
using namespace System::IO;
i get the error
error C2871: 'System' : a namespace with this name does not exist for using namespace System;
&
error C2653: 'System' : is not a class or namespace name for using namespace System::IO;
but i tried creating a new console application and it works fine.
Reply from STLDude
Member Join Date: May 2007, Posts: 294
Reputation:
Re: error C2871: 'System' : a namespace with this name does not exist
--------------------------------------------------------------------------------
This is not C++ but Managed C++ (clr) and thus needs to be specified in project properties at Configuration Properties/General/Common Language Runtime support. There you will see drop down box with options.
My Reply
Re: error C2871: 'System' : a namespace with this name does not exist
--------------------------------------------------------------------------------
I am not able to find Configuration Properties/General/Common Language Runtime support.
I searched the entier project property but failed to get the above setting.
i am using .NET2003 framework 1.1
and my application is C++
No, that isn't C++. It is Managed C++. If you need more help, there is a Managed C++ forum where you should ask further questions.
Regards,
Paul McKenzie