Menu

Project changing to odd text!

2008-10-21
2012-09-26
  • Tapani Moilanen

    Tapani Moilanen - 2008-10-21

    So the problem is that my project in dev-c++ changed in to odd text after restarting my computer and opening it. Originally it was not complete but had 78 lines of c++ and now it has changed to something really odd. It asked the desimals of the pi, training to remember them. But now it doesn't work. Heres what i see when i open it:

    [Project]
    FileName=piin likiarvo.dev
    Name=Project2
    UnitCount=1
    Type=1
    Ver=1
    ObjFiles=
    Includes=
    Libs=
    PrivateResource=
    ResourceIncludes=
    MakeIncludes=
    Compiler=
    CppCompiler=
    Linker=
    IsCpp=1
    Icon=
    ExeOutput=
    ObjectOutput=
    OverrideOutput=0
    OverrideOutputName=
    HostApplication=
    Folders=
    CommandLine=
    UseCustomMakefile=0
    CustomMakefile=
    IncludeVersionInfo=0
    SupportXPThemes=0
    CompilerSet=0
    CompilerSettings=

    [Unit1]
    FileName=piin likiarvo.cpp
    CompileCpp=1
    Folder=
    Compile=1
    Link=1
    Priority=1000
    OverrideBuildCmd=0
    BuildCmd=

    [VersionInfo]
    Major=0
    Minor=1
    Release=1
    Build=1
    LanguageID=1033
    CharsetID=1252
    CompanyName=
    FileVersion=
    FileDescription=Developed using the Dev-C++ IDE
    InternalName=
    LegalCopyright=
    LegalTrademarks=
    OriginalFilename=
    ProductName=
    ProductVersion=
    AutoIncBuildNr=0


    **********

    I just cant undestand why has it changed! It was working correctly, but it changed after restarting my computer. Frustrating to have to write it again! Couldn't find answer to this problem anywhere. That text just replaced everything else!

     
    • Tapani Moilanen

      Tapani Moilanen - 2008-10-22

      Thanks for the explanation. Guess theres nothing to do to it then. Ill just write it again =)

      Tapppi

       
    • cpns

      cpns - 2008-10-21

      That text is the project file for a project called "piin likiarvo". How you managed to overwrite your .cpp file with it is anyone's guess. That said, the problem was reported once before I seem to remember.

      I suppose that it is possible that the problem is related to you having a space in both the project name and teh sourcefile name. I cannot say that that is the problem, but Dev-C++, and GNU make are known to have bugs related to paths and filenames containing spaces, so it is possible I suppose.

      Putting spaces in sourcefile and project names is a bad idea in any case. The default executable name is the same as the project name, and having a space in an executable name opens up a whole world of problems since space is the command line delimiter, so when running your program from the command line or a script you would always have to enclose it in quotes.

      With regard to loosing your code; time to start using a version control system! Subversion or CVS perhaps.

      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.