System Libraries used by makefile


 
Thread Tools Search this Thread
Operating Systems Solaris System Libraries used by makefile
# 1  
Old 12-26-2009
System Libraries used by makefile

Dear All

I am looking for all the system libraries that are accessed by my application Build script i.e. make which in turn will processes makefile.
Is there any specific command from which i can find all the system libraries used by my build script.
Cheers,
Ankur
# 2  
Old 12-26-2009
The purpose of your question is somewhat unclear to me.

If you are looking to find out what libraries make requires in order to execute/run, you can use the ldd utility on make.

If you are looking to find out what libraries are required by an application which was built using make, then you can find that information by using ldd on the application if it was built shared, or by examining the Makefile used to build the application.

If you are looking to find out what libraries are required to successfully build an application, then you will have to track down and resolve all the unresolved symbols which are listed when you try to build the application. If they are external symbols, a good starting place is the man page for the symbol if one exists. Typically the required library is listed in the relevant man page.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Configure: error: X Window system libraries and header files are required

I am trying to compile thunar 1.8.4. It is giving me this error. configure: error: X Window system libraries and header files are required Ubuntu Mate 18.04 (2 Replies)
Discussion started by: drew77
2 Replies

2. Shell Programming and Scripting

including libraries in Makefile.am

hi, I have the following code in my Makefile.am that works fine for simple programs: bin_PROGRAMS=test test_SOURCES=test.cpp so, when I run 'make test', it runs the following command: g++ -o test test.cpp however, when I tried to run a program that includes the QuantLib library, I have to... (12 Replies)
Discussion started by: bacpp
12 Replies

3. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies

4. Programming

gfortran not connecting to system libraries

Hi ! I have one program made of several sub programs which I am trying to compile with gfortran on Fedora 14 in my system. The program was originally written in Fortran 77 and compilation command used to be - fort77 -O2 -f -w -o life life_com.f lifetime.f minuit.f tek_life.f utilities.f... (0 Replies)
Discussion started by: cylab123
0 Replies

5. UNIX for Advanced & Expert Users

Makefile executing another Makefile first?

I have 2 libraries in 2 different directories that I build with Makefiles. library B depends on library A. If I modify a .cpp file in library A and run lib B's Makefile can I have B's makefile to automatically rebuild library A? I am now rebuilding A, followed by B... but I'd like B to... (0 Replies)
Discussion started by: wwuster
0 Replies

6. UNIX for Advanced & Expert Users

Makefile problem - How to run module load in a Makefile

Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error: make: module: command not found Why is this? Is there any way to run this command in a Makefile? NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies

7. Programming

makefile for programs using libraries loaded at runtime

Hi everybody! I would like to set in the makefile a path that should be the path where the program searches for the libraries loaded at run time. Is there such a variable to be set in makefile? Thanks in advance! (1 Reply)
Discussion started by: nadiamihu
1 Replies

8. Programming

system calls vs libraries

Hi a :D ll, I would like to know the differrences between sytem calls and libraries. (3 Replies)
Discussion started by: vijaya2006
3 Replies

9. IP Networking

Libraries

How is Libnet and libpcap are useful in sending a packet through DLL layer and sniff network layer? and how sinffers are used to track ip adresses provided Mac adresses? (1 Reply)
Discussion started by: netsavy
1 Replies

10. UNIX for Advanced & Expert Users

Creating new system Makefile template

I am attempting to set-up a Makefile to use for a new system on a Sun Unix machine. I am new to creating Makefiles. I am trying to start simply by compiling a program. I am getting the following error message but an uncertain what 'Error Code 1' is. Is there a web site with Error Codes... (1 Reply)
Discussion started by: CaptainRo
1 Replies
Login or Register to Ask a Question