?
Solved

namespace in C++

Posted on 2004-04-15
11
Medium Priority
?
2,045 Views
Last Modified: 2013-11-19
Hi guys,
can anyone tell me why this error message: i windwos xp
in debugging process, when i doubleclick on these error message, it takes me to the ligne of code reading: using namespace _STL.
I also try using namespace std; but still
c:\Documents and Settings\komlaaa.ROW-096.000\Desktop\DCPlusPlus-0.401-src\client\stdinc.h(20): error C2871: '_STL' : a namespace with this name does not exist
c:\Documents and Settings\komlaaa.ROW-096.000\Desktop\DCPlusPlus-0.401-src\client\stdinc.h(20): error C2871: '_STL' : a namespace with this name does not exist
c:\Documents and Settings\komlaaa.ROW-096.000\Desktop\DCPlusPlus-0.401-src\windows\stdafx.h(43): fatal error C1083: Cannot open include file: 'atlapp.h': No such file or directory
0
Comment
Question by:achille67
[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
  • 3
  • 3
  • 2
  • +3
11 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10838115
This should be
using namespace std;

What do you get when you use this line?
0
 

Author Comment

by:achille67
ID: 10838140
As i mention, i tried that but still
0
 
LVL 4

Expert Comment

by:caner_elci
ID: 10838201
Maybe this thread helps you?
http://dbforums.com/arch/89/2002/5/376114
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10838205
Do you get the same error message?
0
 

Author Comment

by:achille67
ID: 10839197
yup!
0
 
LVL 7

Expert Comment

by:leflon
ID: 10839907
i'm confused. if you use

using namespace std;

you are still getting
> c:\Documents and Settings\komlaaa.ROW-096.000\Desktop\DCPlusPlus-0.401-src\client\stdinc.h(20): error C2871: '_STL' : a namespace with this name does not exist
??

do you use both 'using xxxxxx' or have you replaced _STL with std?

what about the third error? is there a 'atlapp.h' on your system? the name doesn't sound familiar to me.

leflon
0
 
LVL 16

Expert Comment

by:nonubik
ID: 10840427
maybe the namespace _STL is defined in atlapp.h
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10840671
Which STL are you using?
0
 

Author Comment

by:achille67
ID: 10842879
Felon: well not the same error but many others.
khkremer:
>Which STL are you using?
 i am working on window xp so i go using namespace _STL which one that can be? i am not too sure.
nonubik:
>maybe the namespace _STL is defined in atlapp.h
but if i uncomment "using namespace _STL" and leave atlapp.h
the prob. is not solved.
0
 
LVL 7

Accepted Solution

by:
leflon earned 375 total points
ID: 10843050
just reading your initial post again...
from the path included in the error message i presume that you try to compile the DC++ project (from sourceforge?)?

to compile this a number of things have to setup correctly (including STLport which seems to introduce the namespace _STL).

are you sure you followed
http://sourceforge.net/docman/display_doc.php?docid=22247&group_id=40287

if there is something missing you may want to check the main project page
http://sourceforge.net/projects/dcplusplus/

if this is not about DC++, i better go and get myself a beer :-)

cheers
leflon
0
 
LVL 2

Expert Comment

by:sitbon
ID: 10845486
Try adding an explicit global scope specifier:

 using namespace ::_STL;

if that doesn't work, you probably need to find that atlapp.h and include it *before* the using directive.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

777 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