Results 1 to 8 of 8

Thread: Code::blocks iostream

  1. #1
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default Code::blocks iostream

    C compilation works fine. But the compiler cannot locate the iostream header file.
    Code:
    ||warning: command line option '-Weffc++' is valid for C++/ObjC++ but not for C [enabled by default]|
    C:\Users\Nuun\Documents\testcode.c|1|fatal error: iostream: No such file or directory|
    ||=== Build finished: 1 errors, 1 warnings (0 minutes, 0 seconds) ===|
    Just setting it up on Windows 7, using 64bit GCC. Configuration is tough...
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  2. #2
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    Found the problem. Apparently, the GCC here does not support C++ yet (the 64bit version).
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  3. #3
    Join Date
    Feb 2012
    Posts
    295
    Rep Power
    0

    Default

    is that the default compiler that comes with codeblocks or is it a third party alternative?

  4. #4
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    Quote Originally Posted by glenfordwilliams View Post
    is that the default compiler that comes with codeblocks or is it a third party alternative?
    Code::Blocks usually installs MingW along with the GNU Compiler Collection - environment variables, parameters and all.

    Seems C++ still not working so I installed Eclipse and am trying to get into golang and racket (installed LiteIde and Racket too).
    Last edited by Arch_Angel; Dec 29, 2012 at 10:02 AM. Reason: merged multiple posts
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  5. #5
    Join Date
    Feb 2012
    Posts
    295
    Rep Power
    0

    Default

    why not install codeblocks without the compiler and find a version of mingw that has full c++ support

  6. #6
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    Quote Originally Posted by glenfordwilliams View Post
    why not install codeblocks without the compiler and find a version of mingw that has full c++ support
    Yes. Uninstalled mingw64. The settings conflict with the codeblocks settings otherwise.
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  7. #7
    Join Date
    Jul 2002
    Posts
    1,388
    Rep Power
    0

    Default

    Is C++ hated because the tools are so crappy? Or are the tools so crappy because C++ is hated?
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  8. #8
    Join Date
    Feb 2012
    Posts
    295
    Rep Power
    0

    Default

    if u are still having issues what about tryng another ide eg visual studio, the express versions are free and it works okay

Posting Permissions

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