Here how to reproduce the issue. Please, create the following 3 files into the BIN folder of PellesC:
comp.bat
@ECHO OFF
CALL povars64.bat
set INCLUDE=\Include;%INCLUDE%
pocc -W1 -Gd -Go -Ze -Zx -MT -Tamd64-coff -D_WIN32_WINNT=0x0600 %1.c
polink -subsystem:windows -machine:x64 %1.obj %1.res
test1.c
#include "..\header.h"
test2.c
#include "..\..\header.h"
Start a CMD shell, go to the above BIN folder and then execute:
comp test1.c
Output:
Setting 64-bit environment for Pelles C...
test1.c(3): fatal error #1035: Can't find include file "..\header.h".
POLINK: fatal error: File not found: 'test1.obj'.
comp test2.c
Output:
Setting 64-bit environment for Pelles C...
fatal error: Internal error: 'Access violation' at 0x0000000077581d1e.
POLINK: fatal error: File not found: 'test2.obj'.
I hope this helps.