I'm compiling a program in Haskell, but it came with a .ly
file, and I can not compile it. I try
ghc Grammar.ly
And I get the message:
ld: warning: ignoring file Grammar.ly, file was built for unsupported file format ( 0x3E 0x20 0x7B 0x0D 0x0A 0x3E 0x20 0x6D 0x6F 0x64 0x75 0x6C 0x65 0x20 0x47 0x72 ) which is not the architecture being linked (x86_64): Grammar.ly
Undefined symbols for architecture x86_64:
"_ZCMain_main_closure", referenced from:
_main in ghc11930_2.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If I try with ghc -c -O Grammar.ly
, I get the message:
Warning: the following files would be used as linker inputs, but linking is not being done: Grammar.ly
ghc: no input files Usage: For basic information, try the '--help' option.