mighty-gerbils / gerbil

Gerbil Scheme
https://cons.io
GNU Lesser General Public License v2.1
1.16k stars 112 forks source link

Error while compiling statically linked executable #58

Closed danielsz closed 6 years ago

danielsz commented 6 years ago

I'm following the tutorial/wiki "Getting Started with Gerbil development" after a fresh install. Everything works according to plan, except the very last step, while attempting to produce a static artifact.

*** ERROR IN gxc#compile-exe-static-module -- Syntax Error
*** ERROR IN ?
--- Syntax Error at compile: cannot find static module
... form:   myuser/mylib
... detail: "myuser__mylib.scm"
vyzo commented 6 years ago

Oh, I think that's a bug in the tutorial -- you need to compile the library module for static linkage as well:

gxc -static mylib.ss

I will fix this in the wiki page.

danielsz commented 6 years ago

Excellent. That fixes it indeed. Thank you.