Recommended Posts

I just installed Dev-C++, created a new project (the default Windows app), and tried to compile. It gave me this error:
2 C:\Documents and Settings\Morgan\My Documents\Programming\Dev-C++ Projects\test\2
unable to run program file.
It seems like it is trying to compile a file that doesn't exist and was never added to my project. I used Dev-C++ fine before I had to reinstall windows. It does the same thing with any other program I try to compile, including projects created under my old install. I have no idea how to fix this; please help!
[edited by - nagromo on April 5, 2004 5:28:02 PM]

Share this post

Link to post

Share on other sites

Did you delete the devcpp.cfg and devcpp.ini files? Search for them, but make sure that you have the option to look for hidden files and folders checked. Delete these files, and reinstall. Also, make sure you don''t have spaces in the path where you installed Dev-C++. This can mess up the command line stuff.

Scott Simontise-mail:ageofscott@NOSPAM.comcast.netAIM:ssimontis

0

Share this post

Link to post

Share on other sites

in older versions, dev-c++ (or actually the mingw tools) would only work when located in a directory without spaces. I.e. "Program Files" would break the tool integration. I''m not sure if the same was true of the project files themselves, but it''s something to check.

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities. We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)

Do not interrupt your enemy when he is making a mistake. - Napolean Bonaparte

Share this post

Link to post

Share on other sites

quote:Original post by CaptainJester I think lonesock is correct. Use directory names without spaces.

FYI:

Program Files = progra~1Documents and settings = Docume~1

when it asks for an install path replace the names with spaces to the names w/out spaces and it''ll usually be ok. this is a general fix i''ve had to use with various poorly written apps. there''s a way to escape the space characters as well, but i forget how.

Share this post

Link to post

Share on other sites

It is installed in C:/Dev-C++. I moved my project folder there so the project's path also has no spaces and it still gives me the error. The default windows app gives me a different error, though:

47 C:\Dev-Cpp\include\windows.hIn file included from C:/Dev-Cpp/include/windows.h2 C:\Dev-Cpp\Projects\test\main.cpp from main.cpp24 C:\Dev-Cpp\include\stdarg.h:6no include path in which to find stdarg.h40 C:\Dev-Cpp\include\string.hIn file included from C:/Dev-Cpp/include/string.h37 C:\Dev-Cpp\include\winnt.h from C:/Dev-Cpp/include/winnt.h246 C:\Dev-Cpp\include\windef.h from C:/Dev-Cpp/include/windef.h48 C:\Dev-Cpp\include\windows.h from C:/Dev-Cpp/include/windows.h2 C:\Dev-Cpp\Projects\test\main.cpp from main.cpp24 C:\Dev-Cpp\include\stddef.h:6no include path in which to find stddef.h

It goes on with many more errors in standard header files. I did this with a fresh install. The files stddef.h etc. exist in C:\Dev-Cpp\include. Please help!