Maybe, you have already solved your problem by now.
It seems it is only a problem of selecting the right type of project in the begining (for Windows or for Dos (console), etc.). Or you might have copied the files of another project, without changing the directories in the files. I would recommend to recreate a project, rather than to try to copy a project.
I wonder why you have so many include directories that appear to be related to wxWidgets for a simple hello world program.
Perhaps by 'simple hello world program' you mean a 'simple hello world program using wxWidgets'? In that case you want to ask your question here.
If on the other hand, you never intended for those wx includes to be there, i.e. Dev-C++ put them there for you, I have to wonder where you got Dev-C++ from? Is it an existing installation that someone used previously? Or perhaps you installed wxDev-C++? Try again using a clean installation from http://www.bloodshed.net/devcpp.html
Old Unix programmers never die, they just mv to /dev/null
Hi, i'm getting the same error. I tried to recreate project, reinstall dev-c++ and when that wasn't working i tried wxdev-c++ still with no luck. Now ima downloading MSVC++ express edition but just for writing and testing code.. I afraid of what i'm gonna do for compiling final project!
Hm.. it seems to be something wrong with the compile command in the makefile which is too long. I added everything into one file and it's ok only with dev-c++, wx's version still fails:
this is my compile log:
Once again - does your program use wxWidgets or not?
If yes, please ask your question on the wxWidgets forums. Getting a wxWidgets program to compile and link with any IDE can be a tricky task, and the people of the wxWidgets forums will be able to provide you with more help.
If not, there is no reason to use wxDev-C++. Get a clean install of Dev-C++ from http://www.bloodshed.net/devcpp.html, create a new project (don't reuse an existing project file that gave you problems before), add all your source files to your project, and try compiling again. If you get compile/link errors, post them here. Be sure to mention what kind of project (Win32, console, etc.) you're using and what libraries, if any, it requires.
You can also try Code::Blocks as an alternative free C++ IDE, also relatively simple to use.
Old Unix programmers never die, they just mv to /dev/null
Is your question related to IO?
Read this C++ FAQ LITE article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
Bookmarks