delorie.com/archives/browse.cgi | search |
From: | Yu Jaemin <asiawide AT soback DOT kornet DOT nm DOT kr> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Need for Math library |
Date: | 1 Oct 1998 05:19:19 GMT |
Organization: | Korea Telecom |
Lines: | 21 |
Sender: | Yu Jaemin <asiawide AT soback DOT kornet21 DOT net> |
Message-ID: | <6uv3cn$pvn$1@news.kornet.nm.kr> |
References: | <199810010155 DOT VAA28401 AT delorie DOT com> |
NNTP-Posting-Host: | soback.kornet.nm.kr |
User-Agent: | tin/pre-1.4-980105 (UNIX) (SunOS/5.5.1 (sun4u)) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
George Foot <george DOT foot AT merton DOT ox DOT ac DOT uk> wrote: > The linker processes libraries from left to right. It only > links in parts of libraries that have been used by things > appearing to the left of the library on the command line. > I think your command would not have linked any of the library > -- your C file would have been using libc's versions of the > maths functions. Oops..I'm sorry. :) I thought that both are ok. In gcc manual, I found that it makes difference where in the (gcc) command you write '-l' option. So.. gcc foo.o -lz bar.o is different from gcc foo.o bar.o -lz. The former case, any function in libz.a can't be included to bar.o. I'd better first read the manual. Thanks other people. :) Jaemin
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |