Mail Archives: djgpp/1998/08/30/02:45:48
OK, here is a totally stripped-down demonstration of the problem. And
it might still be bash, or it might be something in the file open
processing in the library, I don't know which. I will use drive
letter h: consistantly here, since that's what I'm using for this
development, but any drive will do. The drive in question is VFAT
(W95 FAT16) format, if that is important.
To test, copy the files below to the directories indicated, then
change to directory h:/gcctest/sub1 and execute these commands:
../gcc-abs
../gcc-rel
../gcc-dos
Only gcc-abs fails. I hope this is enough to solve the problem.
Files:
FILE: h:/gcctest/gcc-abs -------------------------------------
#!/bin/sh
gcc -I//h/gcctest/sub2 -I../src -I.. -c main.c
FILE: h:/gcctest/gcc-dos -------------------------------------
#!/bin/sh
gcc -Ih:/gcctest/sub2 -I../src -I.. -c main.c
FILE: h:/gcctest/gcc-rel -------------------------------------
#!/bin/sh
gcc -I../sub2 -I../src -I.. -c main.c
FILE: h:/gcctest/sub1/main.c ---------------------------------
#include "level1.h"
int main() {
return 0;
}
FILE: h:/gcctest/src/level1.h --------------------------------
/* This is level1.h, included directly from the main.c file */
int level1 = 0;
#include "level2.h"
FILE: h:/gcctest/src/level2.h --------------------------------
/* This is level2.h, included from the level1.h file */
int level2 = 0;
#include <level3.h>
FILE: h:/gcctest/sub2/level2.h -------------------------------
/* This is level3.h, included from the level2.h file */
int level3 = 0;
----------------------------------------------------
Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR
pjfarley AT nospam DOT banet DOT net)
- Raw text -