Hi!
tim...@in... wrote:
> As it stands, not even a "hello world" program will build unless you first
> manually add the include/c++/mingw32 directory into the include search list.
> I would call that a bug, although not a serious one.
Well, I have MinGW installed separately, and it's /bin directory is
added to my PATH environment variable, and everything works fine.
Your problem happens, because the include files are not there, where gcc
expects them to be.
My separate MinGW install has the following dirs:
/bin
/include
/lib
/doc
etc...
So gcc looks for it's DEFAULT includes in /bin/../include/stdio.h etc.
It is it's default include searching path, but in Dev-C++ the includes
are separated, and gcc cannot find them, unless it is explicitly
specified. This is why even a simple "hello world" program needs
explicitly set includes.
If this annoys you, I recommend you to download MinGW from
http://www.mingw.org
install it, and add it's /bin dir to your PATH. If you do this, you
won't need to set ANYTHING at all, not even the exe paths, as they will
be alway present.
Another solution would be to attach a config file to the
(Dev+MinGW together) release, where these includes are already set.
(Although it wouldn't be needed for the Dev only release).
This is my own guess.
--
Greetings,
Balázs
|