Go to Tools->Compiler options-> directories and set them (the include,
the library)
erling b wrote:
> Hi!
>
> OS - Windows XP
> Compiler - Dev-C++ 4.9.7.0
>
> What I did -
>
> 1. File
> new
> Project
> Console application
> OK
>
> Create New Project Window
> FileName Project 1
> save
>
> 2. Wrote simple program
>
> #include <iostream>
> #include <stdlib.h>
>
> int main(int argc, char *argv[])
> {
>
> cout << "Hello world";
>
>
> return 0;
> }
>
> 3. Compile gave the following messages
>
> 1 C:\Dev-Cpp\main.cpp
> from main.cpp
> 28 C:\Dev-Cpp\include\c++\iostream:44
> bits/c++config.h: No such file or directory.
> 44 C:\Dev-Cpp\include\c++\ios
> In file included from C:/Dev-Cpp/include/c++/ios
> 45 C:\Dev-Cpp\include\c++\ostream
> from C:/Dev-Cpp/include/c++/ostream
> 45 C:\Dev-Cpp\include\c++\iostream
> from C:/Dev-Cpp/include/c++/iostream
> 1 C:\Dev-Cpp\main.cpp
> from main.cpp
> 28 C:\Dev-Cpp\include\c++\iosfwd:44
> bits/c++config.h: No such file or directory.
> 45 C:\Dev-Cpp\include\c++\iosfwd
> In file included from C:/Dev-Cpp/include/c++/iosfwd
> 44 C:\Dev-Cpp\include\c++\ios
> from C:/Dev-Cpp/include/c++/ios
> 45 C:\Dev-Cpp\include\c++\ostream
> from C:/Dev-Cpp/include/c++/ostream
> etc etc
>
> 4. Program would not compile and, of course, would not run.
>
> I have downloaded all the essential Windows Updates for Windows XP.
>
> This is very frustrating. Could someone please help me out?
>
> Thanks
> E
>
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger for complex code. Debugging C/C++ programs can leave you
> feeling lost and disoriented. TotalView can help you find your way.
> Available on major UNIX and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|