hpcc-systems/HPCC-Platform — Issue #868: Unix path vs. eclcc include directive
Author: rengolin
Created: 2011-10-31 11:25:34+00:00
State: open

eclcc doesn't recognise many variations of Unix paths on include directive:

~/hpcc/ecl$ eclcc -I../Samples/IMDB/ -E DoCounts.ecl
DoCounts.ecl(1,16): error C2081: Import names unknown module "imdb"
DoCounts.ecl(3,5): error C2167: Unknown identifier before "." (expected :=)

~/hpcc/ecl$ eclcc -I~/hpcc/Samples/IMDB/ -E DoCounts.ecl
DoCounts.ecl(1,16): error C2081: Import names unknown module "imdb"
DoCounts.ecl(3,5): error C2167: Unknown identifier before "." (expected :=)

~/hpcc/Samples/IMDB$ eclcc -I. -E DoCounts.ecl
DoCounts.ecl(1,16): error C2081: Import names unknown module "imdb"
DoCounts.ecl(3,5): error C2167: Unknown identifier before "." (expected :=)

~/hpcc/ecl$ eclcc -I/home/rengolin/hpcc/Samples/IMDB/ -E DoCounts.ecl
DoCounts.ecl(1,16): error C2081: Import names unknown module "imdb"
DoCounts.ecl(3,5): error C2167: Unknown identifier before "." (expected :=)

Strangely, if the path doesn't use any of ~, ., .., / it kinda works (?):

~/hpcc$ eclcc -ISamples/IMDB/ -E DoCounts.ecl
DoCounts.ecl(3,6): error C2167: Unknown identifier "KevinBaconNumberSets"
1 error, 0 warning

IMPORT IMDB;
#option ('hthorMemoryLimit', 5000);
IMDB.KevinBaconNumberSets.doCounts;