Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I love the structure of the site. You start at the top, and drill down to what you want. Maybe I've been using Unix too long... :-) "

Geography

Where in the world do Tek-Tips members come from?

Compiling C tandem guardian

gagar (TechnicalUser)
28 Nov 11 11:36
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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close