Author Topic: ppj File Corruption  (Read 1992 times)


  • Guest
ppj File Corruption
« on: July 15, 2008, 07:36:38 pm »
When deleting and adding files to a project, the ppj file will sometimes become corrupted.  For example, if a project is called Solutions, then the following will sometimes appears in the ppj file after performing the previous actions:

# Build Solutions.exe.
Solutions.exe: \
   polink.exe \
   -machine:ix86 \
   -subsystem:console \
   kernel32.lib \
   advapi32.lib \
   delayimp.lib \
   -out:"" \

Instead, I believe it should look something like this:

# Build Solutions.exe.
Solutions.exe: \
   $(LINK) $(LINKFLAGS) -out:"$@" $**

Although I've noticed this problem seems to occur most frequently after including and deleting files to a project, I have also noticed that afterwards, if you attempt to include or exclude a file to a project, the last file entry under EXCLUDEDFILES will sometimes become repeated, and the file listing shown in the IDE will not change status.

I have reinstalled Pelles several times, and after each install, I was still able to reproduce the same problem again.  The only solution I have found to date is avoid adding and deleting files to a project.

Pelles C for Windows
Version 5.00.8

RSRC0009.DLL: Version 5.00.1
SUPPORT.DLL: Version 5.00.2
POCFMT.DLL: Version 5.00.1
PORC.DLL: Version 5.00.1
POBR.DLL: Version 5.00.2
SQLITE3.DLL: Version 3.5.3
POCC.EXE: Version 5.00.13
POASM.EXE: Version 5.00.4
POLINK.EXE: Version 5.00.1
IDESPAWN.EXE: Version 5.00.1

Pelles installed on Windows XP Pro Service Pack 2


  • Guest
Re: ppj File Corruption
« Reply #1 on: July 16, 2008, 02:58:25 am »
Some additional information to reproduce the problem.

1.   Close any existing project.
2.   Create a new empty Win32 console project and name it Test.
3.   Add three files to the Test project (file1.c, file2.c, and file3.c) by choosing Project > Add files to project...   (For this test make sure each file has a main routine.)
4.   By right clicking on the project source file listing, exclude all three files from the Test project.
5.   By right clicking on the project source file listing, include file2.c to the Test project.
6.   By right clicking on the project source file listing, delete file2.c from the project.  Click Yes when asked if you want to remove file from the project.
7.   Notice file2.c is now gone, but file3.c is now changed from being excluded to being included even though the ppj file shows the file still excluded.  Also notice the ppj file is now missing the Test entry near the top of the file.
8.   Click on file3.c, open it and try to do a build.  The build will fail.
9.   Close file3.c
10.   By right clicking on the project source file listing, exclude file3.c again.
11.   Notice, file.c can not be excluded.  Also notice that the ppj file now has repeated file3.c under the EXCLUDEDFILES category.
12.   By right clicking on the project source file listing, include file1.c to the Test project.
13.   Click on file1.c, open it and try to do a build.  Under Project, notice file3.c is still shown rather than file1.c.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2064
Re: ppj File Corruption
« Reply #2 on: September 23, 2008, 04:47:58 pm »
I will try to reproduce (as soon as I can find the time)...