codeblocks prob

Тема в разделе "WASM.ENGLISH", создана пользователем ipwn, 26 май 2011.

  1. ipwn

    ipwn New Member

    Публикаций:
    0
    Регистрация:
    22 дек 2008
    Сообщения:
    35
    i've just installed codeblocks with vc++6.0 integrated on it. (using Windows Server 2003 PSDK)
    while trying to build this code
    Код (Text):
    1. #include <iostream>
    2.  
    3. using namespace std;
    4.  
    5. int main()
    6. {
    7.     cout << "Hello world!" << endl;
    8.     return 0;
    9. }
    it says streambuf is missing
    Код (Text):
    1. -------------- Build: Release in test ---------------
    2.  
    3. cl.exe /nologo /W3 /EHsc  /Og /Ox /DNDEBUG /MD    /IE:\compilers\MVSVC6.0\VC98\INCLUDE /I"E:\compilers\Microsoft SDK\include"  /c main.cpp /Foobj\Release\main.obj
    4. main.cpp
    5. E:\compilers\MVSVC6.0\VC98\INCLUDE\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
    6. Process terminated with status 2 (0 minutes, 0 seconds)
    7. 1 errors, 0 warnings
    so i've downloaded streambuf from http://www.opensource.apple.com/source/gcc/gcc-1435/libstdc++-v3/include/backward/streambuf.h?txt and included it in the path, after it it complains backward_warning.h its missing
    Код (Text):
    1. -------------- Build: Release in test ---------------
    2.  
    3. cl.exe /nologo /W3 /EHsc  /Og /Ox /DNDEBUG /MD    /IE:\compilers\MVSVC6.0\VC98\INCLUDE /I"E:\compilers\Microsoft SDK\include"  /c main.cpp /Foobj\Release\main.obj
    4. main.cpp
    5. E:\compilers\MVSVC6.0\VC98\INCLUDE\streambuf(31) : fatal error C1083: Cannot open include file: 'backward_warning.h': No such file or directory
    6. Process terminated with status 2 (0 minutes, 0 seconds)
    7. 1 errors, 0 warnings
    so i've downloaded it from http://www.opensource.apple.com/source/gcc/gcc-1435/libstdc++-v3/include/backward/backward_warning.h?txt and included in the path, and now when i try to build it generate 50 errors http://www.everfall.com/paste/id.php?dfy5ekjo3vgf
    whats wrong? am i missing something?
     
  2. Com[e]r

    Com[e]r Com[e]r

    Публикаций:
    0
    Регистрация:
    20 апр 2007
    Сообщения:
    2.624
    Адрес:
    ого..
    OMGOMGOMG!
    i told you - don't do crack or coding! either of them were appeared to be leading to a certain death in your case (nocodingoncrack.com is closed because of those like you!),

    so why would you want to use MSVC*?
    and how did you manage to come to the idea of downloading GCC sysheader into MSVC inclides? omg..

    so, use gcc and don't go in for vc, because
    0. it sucks in its particular way
    1. it deinately suck with you.

    and i also must give you a note about cb default codes:
    0. it's always on gcc, even when you change your compiler to fortran and add a cpp file.
    1. it's a code for linux systems.

    and if you cant compile a Hell'O'World program even when it's codeblocks, then ypu need to resee your relationship with coding (try harder or give the fuck up)

    nice to know you're still alive.
     
  3. ipwn

    ipwn New Member

    Публикаций:
    0
    Регистрация:
    22 дек 2008
    Сообщения:
    35
    nice answer =)
     
  4. M0rg0t

    M0rg0t Well-Known Member

    Публикаций:
    0
    Регистрация:
    18 окт 2010
    Сообщения:
    1.574
    Try to write
    Код (Text):
    1. #include <iostream.h>
    and delete string
    Код (Text):
    1. using namespace std;
    Also, download book D Liberty "C++ 21 days" , it contains examples of just under Visual Studio 6
     
  5. ipwn

    ipwn New Member

    Публикаций:
    0
    Регистрация:
    22 дек 2008
    Сообщения:
    35
    it worked.
    thanks for the reply.