$ cat bug.str
module bug
imports lib

strategies
main = ![_]
$ strc -i bug.str
[ strc | info ] Compiling ‘bug.str’
[ strc | info ] Front-end succeeded : [user/system] = [16.98s/2.51s]
[ strc | info ] Optimization succeeded -O 2 : [user/system] = [0.04s/0.04s]
TranslateStrat undefined: Build(Anno(Op(“Cons”,[Wld,Anno(Op(“Nil”,[]),Op(“Nil”,[]))]),Op(“Nil”,[])))
[ strc | info ] Back-end succeeded : [user/system] = [0.24s/0.07s]
[ strc | error ] Command failed :
gcc bug.o -o bug /nix/store/ygbywraks592fylj0n5ly16ggbgdrcs3-strategoxt/lib/libstratego-lib-native.so -L/nix/store/1m81p5qp9khb0bjscfmwgk8k0w6kq1h8-aterm-2.4.2/lib /nix/store/ygbywraks592fylj0n5ly16ggbgdrcs3-strategoxt/lib/libstratego-runtime.so /nix/store/1m81p5qp9khb0bjscfmwgk8k0w6kq1h8-aterm-2.4.2/lib/libATerm.so -lm -Wl,–rpath -Wl,/nix/store/ygbywraks592fylj0n5ly16ggbgdrcs3-strategoxt/lib -Wl,–rpath -Wl,/nix/store/1m81p5qp9khb0bjscfmwgk8k0w6kq1h8-aterm-2.4.2/lib -Wl,–rpath -Wl,/nix/store/ygbywraks592fylj0n5ly16ggbgdrcs3-strategoxt/lib -Wl,–rpath -Wl,/nix/store/1m81p5qp9khb0bjscfmwgk8k0w6kq1h8-aterm-2.4.2/lib
bug.o: In function register_strategies': bug.c:(.text+0x105): undefined reference tomain_0_0’
bug.o: In function main': bug.c:(.text+0x1be): undefined reference tomain_0_0’
collect2: ld returned 1 exit status

[ strc | error ] Compilation failed (20.56 secs)

Submitted on 29 May 2006 at 11:21

Log in to post comments