Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling C tandem guardian

Status
Not open for further replies.

gagar

Technical User
Jun 30, 2005
8
MX
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top