![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Error C2871: 'System' : a namespace with this name does not existhi .. im new to using visual c++ and kinda got stuck.. hope any1 can help out thx.
when i add in the sample code to try out ...i keep getting a when running in visual c++ "error C2871: 'System' : a namespace with this name does not exist" however when compiling in command prompt they do not complain that the error above.. why and how to solve? |
|||
|
#2
|
|||
|
|||
Re: Hi i got a problem when using visual c++Quote:
Regards, Dave |
|
#3
|
|||
|
|||
Re: Hi i got a problem when using visual c++And command line arguments.
|
|
#4
|
|||
|
|||
Re: Hi i got a problem when using visual c++command line argument meaning this?
g++ -c main.cpp -o main.o |
|
#5
|
|||
|
|||
Re: Hi i got a problem when using visual c++Below are the codes im trying out
-------------------------------- CPP / C++ / C Code:
Last edited by LuciWiz : 08-Sep-2008 at 02:46.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|
#6
|
||||
|
||||
Re: Hi i got a problem when using visual c++It appears you are trying to compile C++ Managed code with gcc. I am not all up to speed with the latest gcc features, but I doubt it supports the .NET Framework.
Please clarify what your target OS and compiler are, perhaps we can suggest an alternative. Best regards, Lucian __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#7
|
|||
|
|||
Re: Hi i got a problem when using visual c++thanks lucian
target OS - windows Compiler - visual c++ well the main problem is about the visual c++ not the gcc compiler since im not using gcc for the actual work. The problem seems to be incorrect settings.. i did some searches on C2871 before and the fix was to change to /clr which i also tried but kept getting incompartibility issue. is there any default settings(referencing library) that must be done before? o btw do anybody know how can i generate a set of keys for AES (128,192,256) using a passphrase? |
|
#8
|
||||
|
||||
Re: Hi i got a problem when using visual c++Quote:
When you created the project, did you use a template from the "CLR" category? If not, I suggest you recreate it, to make sure there are no incompatible settings carried from the wrong project type. A good choice might be the "CLR Console Application" type. Second, change your using statement: CPP / C++ / C Code:
Best regards, Lucian __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#9
|
||||
|
||||
Re: Hi i got a problem when using visual c++Once the OP responds and acknowledges this message, I will move this thread to the .NET Forum. __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#10
|
|||
|
|||
Re: Error C2871: 'System' : a namespace with this name does not existo lol thanks lucian that solves one part
|
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Build error with darkGDK header files ? | genesaika | MS Visual C++ / MFC Forum | 4 | 24-Jul-2008 19:07 |
| Major newbie problem | cynack | MS Visual C++ / MFC Forum | 1 | 08-Apr-2007 11:25 |
| problem with visual studio project | veronica_yick | MS Visual C++ / MFC Forum | 0 | 26-Feb-2007 00:22 |
| Problem using std::stringbuf under Visual C++ | QED | C++ Forum | 3 | 23-Sep-2005 14:27 |
| Visual C++ Tool Problem | wolfban | MS Visual C++ / MFC Forum | 0 | 23-Jul-2005 17:24 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The