sanjin
public text v1 · immutable# the static library c
#
# c.cpp looks like this:
# int __declspec(dllexport) test()
# {
# return 9;
# }
lib c
: c.cpp
: <link>static
;
# the shared library
lib a
: c
: <link>shared
;
# test executable
# main.cpp looks like this:
#
# int __declspec(dllimport) test();
#
# int main()
# {
# test();
# return 0;
# }
exe test
: main.cpp a
;