Caleb Ristvedt <[email protected]> writes: > > Assuming the above file is named emacs-module-test.c: > > ------------------------------- > $ gcc -fPIC -shared emacs-module-test.c -o hello-module.so > $ emacs -Q -L . --batch -l hello-module --eval "(message (hello-c))" > > => Symbol's function definition is void: hello-c > ------------------------------- > > As far as I can tell, this should work. Our emacs is built with > '--with-modules', and 'MODULES' is in system-configuration-features. Any > idea what's going wrong?
I cant reproduce this, it works for me: $ guix environment -C bash --ad-hoc emacs gcc-toolchain [env]$ gcc -fPIC -shared emacs-module-test.c -o hello-module.so [env]$ emacs -Q -L . --batch -l hello-module --eval "(message (hello-c))" TEST MESSAGE! TEST MESSAGE! TEST MESSAGE! Hello Emacs -- Der Erfolg ist nicht danach zu beurteilen, was ein Mensch im Leben erreicht hat, sondern nach den Hindernissen, die er auf dem Weg zum Erfolg ueberwunden hat. (Booker T. Washington)
signature.asc
Description: PGP signature
