Thread: [Dev-C++] Dev-CPP with Mingw
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: <tim...@in...> - 2003-01-29 20:11:53
|
I just started using the package, and I must say I'm pretty impressed so far. Very nice stuff in general. However I have one issue that may or may not be a real bug, depending on how you view it. When compiling any C++ program, you have to add the mingw directory to the include list manually. This is probably because dev-cpp tries to be compiler-agnostic, but since mingw is packaged in, it should be reasonable to expect that you could build a small program right "out of the box" so to speak. 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. Tim Trischuk, Project Manager, Intelsat (202) 944 7053 FAX 295 5152, www.intelsat.com mailto:tim...@in... ############################################################ This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries. ############################################################ |
From: <or...@vp...> - 2003-01-29 23:57:55
|
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 |
From: <cg...@wo...> - 2003-01-30 11:44:46
|
You can set it at once in the compiler options dialog (Under Tools menu) tim...@in... wrote: >I just started using the package, and I must say I'm pretty impressed so >far. Very nice stuff in general. > >However I have one issue that may or may not be a real bug, depending on how >you view it. When compiling any C++ program, you have to add the mingw >directory to the include list manually. This is probably because dev-cpp >tries to be compiler-agnostic, but since mingw is packaged in, it should be >reasonable to expect that you could build a small program right "out of the >box" so to speak. > >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. > >Tim Trischuk, Project Manager, Intelsat >(202) 944 7053 >FAX 295 5152, www.intelsat.com >mailto:tim...@in... > > > >############################################################ >This email message is for the sole use of the intended >recipient(s) and may contain confidential and privileged >information. Any unauthorized review, use, disclosure or >distribution is prohibited. If you are not the intended >recipient, please contact the sender by reply email and >destroy all copies of the original message. Any views >expressed in this message are those of the individual >sender, except where the sender specifically states them >to be the views of Intelsat, Ltd. and its subsidiaries. >############################################################ > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.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 > > > |