I\'ve got a \'n.c\' as main function, and \'o.c\' as import function, like below:
$ cat n.c o.c
int f();
int main(){
f();
return 0;
}
#include
You also need to specify the path where to search for libraries, in this case:
Program('n.c',LIBS=['o'], LIBPATH=['.'])
Please also check chapter 4 "Building and Linking with Libraries" of our UserGuide, which does not only explain how to create and work with Libraries, it further states that your claim from above "SCons interprets LIBS to use dynamic link shared libraries" is plain wrong. Otherwise the object files would end with *.os
instead...