Jump to content
  • Advertisement
Sign in to follow this  
thannett

DJGPP Troubles

This topic is 5048 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've installed DJGPP and I'm trying to compile a Hello World program to test it, but it won't compile, gives the following error: C:\Documents and Settings\thannett\My Documents\Code\C++ Code\Hello>gcc Hello.c -o Hello.exe cc1.exe: Hello.c: No such file or directory (ENOENT) I can't seem to find out whats wrong, Hello.c is certainly where it's supposed to be. Any Help would be appreciated

Share this post


Link to post
Share on other sites
Advertisement
I'm suspicious of the long directory name string preceding your filename. I recommend attempting to compile Hello.c in C:/ or in a <= 8-character (no spaces) directory right on top of C:/ (such as C:/mycode) to see if that might have something to do with it -- if so, there's a setting in the ENV file to accommodate for long file names (y/n). Also make sure that the correct DJGPP batch files are being run when you enter the DOS command prompt box (eg those that initialize the ENV file)!

If this isn't the problem, then you may want to browse through your ENV file to ensure it's properly set up. If this fails, then you may want to consider reinstalling DJGPP, or look into an IDE/compiler combo to simplify the process.

Share this post


Link to post
Share on other sites
Wow, that was a really quick reply!

You were right, it was the long filenames. Now can you tell me how to make long file names work, slowly, I'm a newb.

Thanks a bunch!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!