* link personal library before standard library
@ 1999-11-19 13:11 Yung-Hsiang Lu
1999-11-30 23:28 ` Yung-Hsiang Lu
0 siblings, 1 reply; 2+ messages in thread
From: Yung-Hsiang Lu @ 1999-11-19 13:11 UTC (permalink / raw)
To: help-gcc
Hi,
I have a question about linking with library.
Can I link my personal library first and then the standard library?
If so, how to do this? Thank you very much.
Imagine I have a (large) legacy program that does not check the return
code of malloc. I would like to link it to my personal library that
implements a wrapper for malloc (such as checking return code), then
link with the real standard library. To illustrate this idea
legal code my library standard library
.......
malloc -----> malloc()
....... { |-----------------> malloc
if (malloc() == NULL)
.......
}
Platform: SunOS 5.6 and Linux 2.2.5
--
Sincerely,
Yung-Hsiang Lu
luyung@stanford.edu
^ permalink raw reply [flat|nested] 2+ messages in thread
* link personal library before standard library
1999-11-19 13:11 link personal library before standard library Yung-Hsiang Lu
@ 1999-11-30 23:28 ` Yung-Hsiang Lu
0 siblings, 0 replies; 2+ messages in thread
From: Yung-Hsiang Lu @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
Hi,
I have a question about linking with library.
Can I link my personal library first and then the standard library?
If so, how to do this? Thank you very much.
Imagine I have a (large) legacy program that does not check the return
code of malloc. I would like to link it to my personal library that
implements a wrapper for malloc (such as checking return code), then
link with the real standard library. To illustrate this idea
legal code my library standard library
.......
malloc -----> malloc()
....... { |-----------------> malloc
if (malloc() == NULL)
.......
}
Platform: SunOS 5.6 and Linux 2.2.5
--
Sincerely,
Yung-Hsiang Lu
luyung@stanford.edu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-30 23:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-19 13:11 link personal library before standard library Yung-Hsiang Lu
1999-11-30 23:28 ` Yung-Hsiang Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).