
Hi all, Work on getting YHC to compile under Windows is progressing well. Can someone suggest a reason why I get the following error when trying to build the YHC library? inst\bin\yhc.exe -i src/packages/yhc-base-1.0/ -d src/packages/yhc-base-1.0/ -c src\packages\yhc-base-1.0\Foreign\Word.hs yhc.exe: Unknown preprocessor directive at line 16 in file "D:\\programming\\yhc-devel/src\\packages\\yhc-base-1.0\\Foreign\\Word.hs" define WORD_TYPE(T,BS,LB,UB) \ Cheers, Andrew

"Andrew Wilkinson"
Work on getting YHC to compile under Windows is progressing well. Can someone suggest a reason why I get the following error when trying to build the YHC library?
src\packages\yhc-base-1.0\Foreign\Word.hs yhc.exe: Unknown preprocessor directive ... define WORD_TYPE(T,BS,LB,UB)
Obviously yhc is failing to invoke cpphs on this file. Beyond that, I don't know.

Hi Andrew
src/packages/yhc-base-1.0/ -c src\packages\yhc-base-1.0\Foreign\Word.hs yhc.exe: Unknown preprocessor directive at line 16 in file "D:\\programming\\yhc-devel/src\\packages\\yhc-base-1.0\\Foreign\\Word.hs" define WORD_TYPE(T,BS,LB,UB) \
Specifying -cpp at the Yhc command line should fix this one. Thanks Neil

Thanks for the replies guys, I worked it out on the way home. It's another bug caused by Windows not using the correct slashes in file names so it wasn't matching against my list of required flags for each file. Andrew
participants (3)
-
Andrew Wilkinson
-
Malcolm Wallace
-
Neil Mitchell