[RESOLVED] Error in header file
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: [RESOLVED] Error in header file

  1. #1
    Join Date
    Dec 2007
    Posts
    67

    [RESOLVED] Error in header file

    Hi

    i am geting error in vc++(2005),when include #include <iostream>, #include <sstream.h> and #include <iomanip.h>.Then i am geting error like this .How to slove it



    1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(549) : error C2059: syntax error : '('
    1>c:\program files\microsoft visual studio 8\vc\include\cstdlib(28) : error C2039: 'system' : is not a member of '`global namespace''
    1>c:\program files\microsoft visual studio 8\vc\include\cstdlib(28) : error C2873: 'system' : symbol cannot be used in a using-declaration
    1>c:\documents and settings\mirtunjay\desktop\tcp\tcp\tcp.cpp(9) : fatal error C1083: Cannot open include file: 'sstream.h': No such file or directory
    Last edited by Mirtunjay; March 13th, 2008 at 01:33 AM.

  2. #2
    Join Date
    Feb 2008
    Location
    India
    Posts
    28

    Re: Error in header file

    check your directory path and also check stdlib.h.
    May be there is something missing (system) on line no. 549 in stdlib.h

  3. #3
    Join Date
    May 2007
    Posts
    800

    Re: Error in header file

    It should be #include <sstream> not #include <sstream.h>. Also, show us your code which will help us to help you.

    P.S. Use code tags for it.

  4. #4
    Join Date
    Dec 2007
    Posts
    67

    Resolved [Resolved]: Error in header file

    Quote Originally Posted by Mukesh_VC
    check your directory path and also check stdlib.h.
    May be there is something missing (system) on line no. 549 in stdlib.h
    Thanks for help.
    I have found error. actually by mistake i have deleted a line from stdlib.h.

    Now my program is working.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center