Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nagromo

Dev-C++ compiling '2'?

This topic is 5212 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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 Simontis
e-mail:ageofscott@NOSPAM.comcast.net
AIM:ssimontis

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.

lonesock

Piranha are people too.

Share this post


Link to post
Share on other sites
I deleted the config files and now it gives a new error:

ld C:\Documents and Settings\Morgan\My Documents\Programming\Dev-C++ Projects\TextRPG\ld
cannot open crt2.o: No such file or directory.

Adding C:/Dev-C++/lib/crt2.o to the files to link didn''t help, either, and I have no idea what ld is.

Share this post


Link to post
Share on other sites
I think lonesock is correct. Use directory names without spaces.



First make it work, then make it fast. --Brian Kernighan

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~1
Documents 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.

-me

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.h
In file included from C:/Dev-Cpp/include/windows.h
2 C:\Dev-Cpp\Projects\test\main.cpp
from main.cpp
24 C:\Dev-Cpp\include\stdarg.h:6
no include path in which to find stdarg.h
40 C:\Dev-Cpp\include\string.h
In file included from C:/Dev-Cpp/include/string.h
37 C:\Dev-Cpp\include\winnt.h
from C:/Dev-Cpp/include/winnt.h
246 C:\Dev-Cpp\include\windef.h
from C:/Dev-Cpp/include/windef.h
48 C:\Dev-Cpp\include\windows.h
from C:/Dev-Cpp/include/windows.h
2 C:\Dev-Cpp\Projects\test\main.cpp
from main.cpp
24 C:\Dev-Cpp\include\stddef.h:6
no 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!

[edited by - nagromo on April 5, 2004 9:53:51 PM]

Share this post


Link to post
Share on other sites
Why are some slashes backwards ( "\" ) and some forewards ( "/" ) ? I think that''s your problem

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!