[sac-user] How do you import local code in SAC?

Andrew Pennebaker andrew.pennebaker at gmail.com
Mon Oct 31 09:25:37 CET 2011

C uses #include "localcode.h"

SAC uses use/import LocalCode;, but SAC doesn't seem to see
LocalCode.sacin the same directory. :(

sac2c -o test test.sac

ABORT: Cannot find library `libLocalCodeTree.so' for module
ABORT: `LocalCode'

*** Compilation failed ***
*** Exit code 15 (Running module system)
*** 1 Error(s), 0 Warning(s)

How do I compile SAC code to a .so file, and where do I put the .so file so
that anywhere on my computer, use LocalCode; will work?


Andrew Pennebaker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sac-home.org/pipermail/sac-user/attachments/20111031/83019bde/attachment-0002.html>

More information about the sac-user mailing list