Menu

Does it have to create stupid _private files?

Viper187
2008-06-01
2012-09-26
  • Viper187

    Viper187 - 2008-06-01

    That's annoying and clutters the project folder.

     
    • Kip

      Kip - 2008-06-07

      ;) World peace, that would be nice. Ubuntu won't take us all the way there, but I think its philosophy is a start in the right direction.

      But honestly though, a large portion of the non-language specific problems people are having on this forum could be solved by better thought out solutions available in an apt repository.

      Kip

       
    • Kip

      Kip - 2008-06-02

      www.ubuntu.com

      Kip

       
    • Viper187

      Viper187 - 2008-06-03

      What the hell does linux have to do with this? I'm talking about running Dev-C++ on WinXP. I've done other projects and never had this issue. I'm trying to figure out why it's happening now after a fresh install of 4.9.9.0. I don't want a stupid projects1_private.rc file with 1 line telling it to include my actual .rc file. That's bloody annoying. Is there some way to disable the auto-generation of that shit?

       
    • cpns

      cpns - 2008-06-03

      Kip it seems is a convert, lately that has been his answer to everything (probably including world peace). My answer to perhaps not everything, but many things Dev-C++ related is VC++ 2008 Express Edition ;-)

      Interestingly you spent more words ranting than you did in your original (rather terse) question. Ask a question in the manner suggested in the "PLEASE READ BEFORE POSTING A QUESTION" thread, so that we know what the problem you are having is, then you might get a more helpful response.

      If you are building a console app and are getting these files generated, then you are doing something wrong. If you are building a GUI app, you may or may not need them. In the end, building an application of any significance creates a large number of intermediate files in any case, so I have no idea why these minor files are troubling you enough to spend time over it. I wonder why you did not pick on dummy.res while you were at it!?

      I often suggest that there are two approaches to solving a problem, 1) the technological fix, and 2) the change of perception. It is always easier to change your perception so that you no longer regard it as a problem. If your problem perception point is this far over, your life must be really stressed.

      For some reason, these files are always generated, but are only actually used if you check the "Include version information in project" box in the Project|Project options|Version Info dialog.

      Anyway, for the technological fixes three suggestions:

      1) Dev-C++ is an open source project - change it.
      2) Add a custom "after-all" make rule to delete these files whne the build is done.
      3) Delete them, they don't seem to get regenerated

      Let's ignore (1). For (2) do this:

      Create a file del_private.mak in c:\dev-cpp\bin containing the following:

      after-all :
      <TAB>del _private.
      <TAB>del dummy.res

      note that <TAB> is a hard-tab character. I suggest that you create this file with notepad rather than Dev-C++ as it may be configured to use soft-tabs and make insists on <TAB> as a delimiter.

      In your Project|Project options|Makefile dialog, add c:\dev-cpp\del_private.mak to the "Include the following files into the Makefile" list.

      I discovered (3) while investigating (2). I am not sure exactly what parts of what I did were necessary, but I checked the "Include version information in project" box, built the project, unchecked "Include version information in project", deleted the redundant files, and did a "Rebuild All". The files were not regenerated. It may be that just deleting the files after the first build is sufficient - but I don't care enough now to try it!

      Now, calm down and relax!

      Clifford

       

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.