Menu

compiler probs--devc++:iostream

2004-09-28
2012-09-26
  • Nobody/Anonymous

    I just happily downloaded a gnu devc++ IDE from Bloodshed software.
    I finally got it to compile but it wouldn't recognize this command: #include
    <iostream> or <iostream.h> "no such file or directory" . It would,
    however,
    compile with #include <stdio.h>.

    I started a project and the bullet was in C++ program instead of a C
    program, and the file was named *.cpp

    It doesnt seem to go down to the next subdirectory down from include files
    to c++

    I dont know what to do.

    Monte C. Haun Jr.

    mhaun@BLOCKSPAM.theworld.com

    Compiler: Default compiler
    Building Makefile: "C:\myprogs\Makefile.win"
    Executing make clean
    rm -f ../Dev-Cpp/Templates/main.o test3.cpp.exe

    g++.exe -c ../Dev-Cpp/Templates/main.cpp -o ../Dev-Cpp/Templates/main.o -I"C:/DEV-CPP/include" -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include"

    ../Dev-Cpp/Templates/main.cpp:1:22: iostream.h: No such file or directory

    g++.exe ../Dev-Cpp/Templates/main.o -o "test3.cpp.exe" -L"C:/DEV-CPP/lib" -I"C:/DEV-CPP/include" -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include"

    G__~1.EXE: ../Dev-Cpp/Templates/main.o: No such file or directory
    G__~1.EXE: no input files

    Execution terminated

    include <iostream.h>

    include <stdlib.h>

    int main()
    {

    system("PAUSE");
    return 0;

    --

    If you have a problem. Start your own thread.
    This is probably not the palce for it.
    However iostream.h is deprecated and is installed
    in "C:/DEV-CPP/include/c++/backward",
    which is not listed in your include paths.
    However "C:/DEV-CPP/include" is unnecessarily listed twice.
    If you still have a problem don't relpy on this thread; start your own.

    I added : C:\DEV-CPP\inlcude\c++\backward and got a huge amount of compile error
    messages, here is a small sample.

    Monte C. Haun jr.

    --

    Compiler: Default compiler
    Executing g++.exe...
    g++.exe "C:\myprogs\testio2.cpp" -o "C:\myprogs\testio2.exe" -I"C:\DEV-CPP\include" -I"C:\DEV-CPP\include\c++" -I"C:\DEV-CPP\include" -I"C:\DEV-CPP\include\c++\backward" -L"C:\DEV-CPP\lib"
    In file included from C:/DEV-CPP/include/c++/backward/iostream.h:31,
    from C:/myprogs/testio2.cpp:1:
    C:/DEV-CPP/include/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
    In file included from C:/DEV-CPP/include/c++/backward/iostream.h:32,
    from C:/myprogs/testio2.cpp:1:
    C:/DEV-CPP/include/c++/iostream:44:28: bits/c++config.h: No such file or directory
    In file included from C:/DEV-CPP/include/c++/ios:44,
    from C:/DEV-CPP/include/c++/ostream:45,
    from C:/DEV-CPP/include/c++/iostream:45,

     
    • Jim W.

      Jim W. - 2004-09-28

      Here's one clue:
      "bits/c++config.h: No such file or directory"

      In my installation (Dev-C++ 4.9.9.0 "full package"), here's where c++config.h is:

      C:\Dev-Cpp499x\include\c++\3.3.1\mingw32\bits

      What version of Dev-C++ are you using? Check where your files are and how your directories are set up, and, if you think it might help, consider updating.

      By the way, did you have a previous installation? You might take a look at The Forum FAQ for info regarding uninstalling and reinstalling (applies to updating).

      -- Jim.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.