Author Topic: streambuf error  (Read 5099 times)

Offline ipwn

  • Single posting newcomer
  • *
  • Posts: 5
    • pwndomina hp
streambuf error
« on: May 25, 2011, 06:49:58 pm »
after installation of codeblocks and integration with VC6.0
i get this error after starting a project from scratch
Quote
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}
E:\compilers\MVSVC6.0\VC98\INCLUDE\ios|9|fatal error C1083: Cannot open include file: 'streambuf': No such file or directory|

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ipwn

  • Single posting newcomer
  • *
  • Posts: 5
    • pwndomina hp
Re: streambuf error
« Reply #2 on: May 25, 2011, 08:19:22 pm »
this is the output of build log
Quote
-------------- Build: Debug in test ---------------

cl.exe /nologo /W3 /EHsc  /Zi /D_DEBUG /MDd    /I"E:\compilers\Microsoft SDKs\Windows\v7.1\Include" /IE:\compilers\MVSVC6.0\VC98\INCLUDE  /c main.cpp /Foobj\Debug\main.obj
main.cpp
E:\compilers\MVSVC6.0\VC98\INCLUDE\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Process terminated with status 2 (0 minutes, 0 seconds)
1 errors, 0 warnings
 
« Last Edit: May 25, 2011, 09:21:56 pm by ipwn »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: streambuf error
« Reply #3 on: May 25, 2011, 10:28:38 pm »
The error message clearly explains what's happening. The compiler cannot find the file "streambuf" which is tried to be included from "ios".

Verify the file exists in either:
E:\compilers\Microsoft SDKs\Windows\v7.1\Include
...or:
E:\compilers\MVSVC6.0\VC98\INCLUDE


BTW: You are mixing a very outdated compiler with a very recent Windows SDK. Sooner or later this is not going to work anyways. Visual C++ v6 ships with it's own SDK which you should use. Such mixture is no good.

BTW: This is a compiler issue, not a C::B issue, so I am locking the topic now as it actually violences our forum rules.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ