I changed "./test.h" to "../test.h", but it still failed.
Below is the output message after adding -E switch:
# 1 "Mytest.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "Mytest.c"
# 1 "Mytest.xs"
# 1 "C:/strawberry/perl/lib/CORE/EXTERN.h" 1
# 2 "Mytest.xs" 2
# 1 "C:/strawberry/perl/lib/CORE/perl.h" 1
# 38 "C:/strawberry/perl/lib/CORE/perl.h"
# 1 "C:/strawberry/perl/lib/CORE/config.h" 1
# 39 "C:/strawberry/perl/lib/CORE/perl.h" 2
# 605 "C:/strawberry/perl/lib/CORE/perl.h"
# 1 "C:/strawberry/c/bin/../lib/gcc/mingw32/3.4.5/../../../../include/
+sys/types.h" 1 3
UPDATE:
Thanks for BrowserUk's reminding, I shrink the log size for makeing this reply re-readable. But it seems useless :(
I change the name of function from max to lc_max. it works!
I don't understand why this change can affect. Hope gurus enlighten me about this.