home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.misc
- Path: sparky!uunet!caen!hellgate.utah.edu!asylum.cs.utah.edu!allen
- From: allen%asylum.cs.utah.edu@cs.utah.edu (Allen Sanderson)
- Subject: Re: cc with -pg (profiling)
- Date: 23 Jul 92 10:13:46 MDT
- Message-ID: <1992Jul23.101347.26435@hellgate.utah.edu>
- Organization: University of Utah CS Dept
- References: <1992Jul22.135707.28712@hellgate.utah.edu> <1992Jul23.052334.28119@aristo.tau.ac.il>
- Lines: 23
-
- >allen%asylum.cs.utah.edu@cs.utah.edu (Allen Sanderson) writes:
- >>
- >>I add in the -Bstatic to the linking portion of the code and behold
- >>lots of X11 routines (like _XDrawText) are not available in the static
- >>libraries. The profiling will not let use a combination of static and
- >>dynamic libs either.
-
-
- shani@genius.tau.ac.il (Oren Shani) writes:
- >But wouldn't the -Bstatic flag load the dynamic libraries as if they where
- >static (i.e. in compile time) ?
-
-
- It would make sense that the dynamic libs should get loaded in
- statically but when I link the program dynamically (without the -pg
- option) I do not get and unresolved symbols. If you look at yours
- libs you will see that there are two libs one with a *.so.#.# and
- *.sa.#.# one is static the other is dynamic. The linker looks for
- appropriate lib based of the -B flag.
-
- Allen R.Sanderson
-
- allen@mirl.med.utah.edu
-