Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory *****

how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory *****

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++visual-studiosysadmin
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 10860215
    wrote on last edited by
    #1

    I am trying to compile the old code from y server to deply into the new server and ever service code is facing this problem . I have installed visual studio 2008 and visual studio 2005 to compile these codes . while compileing the code in debug mode and release i am facing this error fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory I tried to change it as then the following errors are displyed 1>.\WFTeams.cpp(97) : error C2065: 'cout' : undeclared identifier 1>.\WFTeams.cpp(97) : error C2065: 'flush' : undeclared identifier 1>.\WFTeams.cpp(397) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>.\WFTeams.cpp(398) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>Build log was saved at "file://d:\devcodes\WFTeams\Release\BuildLog.htm" 1>WFTeams - 2 error(s), 3 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

    L _ D U 4 Replies Last reply
    0
    • U User 10860215

      I am trying to compile the old code from y server to deply into the new server and ever service code is facing this problem . I have installed visual studio 2008 and visual studio 2005 to compile these codes . while compileing the code in debug mode and release i am facing this error fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory I tried to change it as then the following errors are displyed 1>.\WFTeams.cpp(97) : error C2065: 'cout' : undeclared identifier 1>.\WFTeams.cpp(97) : error C2065: 'flush' : undeclared identifier 1>.\WFTeams.cpp(397) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>.\WFTeams.cpp(398) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>Build log was saved at "file://d:\devcodes\WFTeams\Release\BuildLog.htm" 1>WFTeams - 2 error(s), 3 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

      L Offline
      L Offline
      leon de boer
      wrote on last edited by
      #2

      You really don't need to ask the same question in multiple places on the site

      In vino veritas

      1 Reply Last reply
      0
      • U User 10860215

        I am trying to compile the old code from y server to deply into the new server and ever service code is facing this problem . I have installed visual studio 2008 and visual studio 2005 to compile these codes . while compileing the code in debug mode and release i am facing this error fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory I tried to change it as then the following errors are displyed 1>.\WFTeams.cpp(97) : error C2065: 'cout' : undeclared identifier 1>.\WFTeams.cpp(97) : error C2065: 'flush' : undeclared identifier 1>.\WFTeams.cpp(397) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>.\WFTeams.cpp(398) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>Build log was saved at "file://d:\devcodes\WFTeams\Release\BuildLog.htm" 1>WFTeams - 2 error(s), 3 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Change #include <iostream.h> to the following 2 lines -

        #include <iostream>
        using namespace std;

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++) (October 2009 - September 2013)

        Polymorphism in C

        U 1 Reply Last reply
        0
        • _ _Superman_

          Change #include <iostream.h> to the following 2 lines -

          #include <iostream>
          using namespace std;

          «_Superman_»  _I love work. It gives me something to do between weekends.

          _Microsoft MVP (Visual C++) (October 2009 - September 2013)

          Polymorphism in C

          U Offline
          U Offline
          User 10860215
          wrote on last edited by
          #4

          Thanks for the response . I have tried replacing iostream.h as susggested and then it is showing the link errors

          LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
          1>stdafx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>thread.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>WFTeams.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>Workflow.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>ADSI.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>classes.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>Database.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>Service.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
          1>WFTeams.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>Workflow.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>Workflow.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>stdafx.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>thread.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>thread.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>WFTeams.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>Database.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>Database.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>Service.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>Service.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>ADSI.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>ADSI.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
          1>classes.obj : error LNK2001: unresolved external symbol "

          L 1 Reply Last reply
          0
          • U User 10860215

            I am trying to compile the old code from y server to deply into the new server and ever service code is facing this problem . I have installed visual studio 2008 and visual studio 2005 to compile these codes . while compileing the code in debug mode and release i am facing this error fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory I tried to change it as then the following errors are displyed 1>.\WFTeams.cpp(97) : error C2065: 'cout' : undeclared identifier 1>.\WFTeams.cpp(97) : error C2065: 'flush' : undeclared identifier 1>.\WFTeams.cpp(397) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>.\WFTeams.cpp(398) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>Build log was saved at "file://d:\devcodes\WFTeams\Release\BuildLog.htm" 1>WFTeams - 2 error(s), 3 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            So have you looked to see if the iostream.h file exists? If you can't find it, neither can VS.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            1 Reply Last reply
            0
            • U User 10860215

              Thanks for the response . I have tried replacing iostream.h as susggested and then it is showing the link errors

              LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
              1>stdafx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>thread.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>WFTeams.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>Workflow.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>ADSI.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>classes.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>Database.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>Service.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
              1>WFTeams.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>Workflow.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>Workflow.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>stdafx.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>thread.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>thread.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>WFTeams.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>Database.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>Database.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>Service.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>Service.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>ADSI.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>ADSI.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
              1>classes.obj : error LNK2001: unresolved external symbol "

              L Offline
              L Offline
              leon de boer
              wrote on last edited by
              #6

              The first warning is just telling you OleAcc.dll is not used and you can remove the reference to it. Okay now the problem is simple they are all linker errors you are through the compiler process That means the linker include directory is wrong or not set at all and those are standard MFC libraries so they should be available. I am going to take a wild guess take a look under the project settings->linker->command line It wouldn't happen to contain the command /NODEFAULTLIB would it? That is the only way I can think to get that problem and if it's there please remove it.

              In vino veritas

              1 Reply Last reply
              0
              • U User 10860215

                I am trying to compile the old code from y server to deply into the new server and ever service code is facing this problem . I have installed visual studio 2008 and visual studio 2005 to compile these codes . while compileing the code in debug mode and release i am facing this error fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory I tried to change it as then the following errors are displyed 1>.\WFTeams.cpp(97) : error C2065: 'cout' : undeclared identifier 1>.\WFTeams.cpp(97) : error C2065: 'flush' : undeclared identifier 1>.\WFTeams.cpp(397) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>.\WFTeams.cpp(398) : warning C4996: 'strcat' was declared deprecated 1> c:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat' 1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>Build log was saved at "file://d:\devcodes\WFTeams\Release\BuildLog.htm" 1>WFTeams - 2 error(s), 3 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

                U Offline
                U Offline
                User 10887135
                wrote on last edited by
                #7

                if the problem is cannot open include file , You must first check the following: 1. Check your directories if your compiler you used was save in the same directories. 2. How to check your directories (press Alt O(Options) in your C ++(IDE)compiler then choose directories. 3. Then change your directories if it is not properly placed. (If you save your compiler in the C drive, the directories must in C Drive also. Celine

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups