Jump to content

'std' : a namespace with this name does not exist

- - - - -

  • Please log in to reply
5 replies to this topic

#1
Nishantstech

Nishantstech

    Newbie

  • Members
  • Pip
  • 7 posts
Hi all,
I am creating dll and in .cpp file i am just adding "using namespace std".
while compiling i am getting error like " 'std': a namespace with this name doesn't exist".
Kindly help.
Nishant.

#2
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
Have you included any standard header in your source document? If you haven't yet, then namespace std hasn't been declared.

Please provide source with the problem.
Wow I changed my sig!

#3
Nishantstech

Nishantstech

    Newbie

  • Members
  • Pip
  • 7 posts
i have just added "using namespace std" to use all the standard functions.
I have not added any header files.

#4
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
You will need to include a standard header file which defines the std namespace, else your compiler will tell you that the std namespace does not exist. :P
Wow I changed my sig!

#5
Nishantstech

Nishantstech

    Newbie

  • Members
  • Pip
  • 7 posts
Thanks :)

#6
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
If you want to use containers in your program then use the ones in include/cliext folder instead of std c++ containers -- they are in namespace cliext, not std.
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users