Question: You have written a C program and during run-time you would like the linker to load certain specified libraries first. How would you accomplish this?

You have written a C program and during run-time you would like the linker to load certain specified libraries first. How would you accomplish this? 1


By assigning the paths of the libraries to the environment variable PATH before program compilationĀ 


By including a system () call in the program and passing the absolute paths of the libraries as its argumentsĀ 


By compiling the program using the command geeĀ 


By assigning the paths of the libraries to the environment variable LD_PRELOAD before program compilation

Step by Step Solution

3.47 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below To specify certain librarie... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!