I am trying to compile a C program that uses several libraries
I have the main source file "testc" and some libraries
libFile1,
libFile2,
libFile3...
To compile I use:
RUN $SYSTEM.SYSTEM.C / IN TESTC, OUT TESL / TESTO
SSV0 "$VOL.SUBVOL"
SSV1 "$VOL2.SUBVOL2"
in $vol.subvol are the header files that testc is using
in $vol2.subvol2 are the libraries source files (maybe this is not working)
it compiles OK, but when I run it shows run-time errors:
external reference error... liFile1_someFunction
I link testc and libFile1 using the binder, compiling first libFile1
and then bind the two obects:
add * from tesct
add * from libFile1
it works but the problem I am facing is that if I use
libFile2,
libFile3,
libFile4...
and libFile2 uses 10 libraries files and libFile3 uses 20 libraries files and so on
I have to compile a lot of source files first in order to bind them
Is there another way to link all the libraries source files to
the main source file (testc)?
Thank you in advance.
I have the main source file "testc" and some libraries
libFile1,
libFile2,
libFile3...
To compile I use:
RUN $SYSTEM.SYSTEM.C / IN TESTC, OUT TESL / TESTO
SSV0 "$VOL.SUBVOL"
SSV1 "$VOL2.SUBVOL2"
in $vol.subvol are the header files that testc is using
in $vol2.subvol2 are the libraries source files (maybe this is not working)
it compiles OK, but when I run it shows run-time errors:
external reference error... liFile1_someFunction
I link testc and libFile1 using the binder, compiling first libFile1
and then bind the two obects:
add * from tesct
add * from libFile1
it works but the problem I am facing is that if I use
libFile2,
libFile3,
libFile4...
and libFile2 uses 10 libraries files and libFile3 uses 20 libraries files and so on
I have to compile a lot of source files first in order to bind them
Is there another way to link all the libraries source files to
the main source file (testc)?
Thank you in advance.