Menu

Maximum number of files allowed in a project?

2002-11-17
2012-09-26
  • Nobody/Anonymous

    Is there a maximum number of files allowed in a project?  I ask because I added two new files (for a class) and I couldn't compile the project.  It will say:

    Bad command or file name
    Execution terminated
    Compilation successful

    But if I remove two files (it doesn't matter which two), it will compile normally and successfully.  So, it appears there is some kind of maximum number of files allowed in a project.  If this is so, is there any way around it?  Any tricks like incrementally linking the object files together?  Thanks for your help.

     
    • Nobody/Anonymous

      This is an annoying problem that I face very often as well. It appears to be a problem with a limitation in the DOS command line length. I run Win98 at work and WInMe at home. I have heard that this problem does not exist with WinXP.

      So far the only workaround suggested is to put more of your code together to reduce the number of files. Alternatively, if you have some standard code which you have written and call in to your projects then one person suggested creating a library file and linking that at compile time.

      One workaround I used was to rearrange my directories so that it minimised the length of the command during linking. One possibility is to put your .DEV project file into your OBJECT directory so that the path to your .o files is unneccesary.

      BlakJak :]

       
      • Nobody/Anonymous

        Well this is unacceptable.  I know it is not a Dev-cpp problem, but it is still a problem.  I was thinking it might be a problem with DOS (because of "Bad Command or File Name").  A library file might work (a static library is just a collection of object files). 

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.