This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Jan 12, 1999, Sami Romdhani <rodhams@westminster.ac.uk> wrote:
> made with : egcs math.cc -lstdc++
> In function `main': undefined reference to `sqrt'
> collect2: ld returned 1 exit status
It's not supposed to be there. g++ adds `-lstdc++ -lm' to the link
command, but you're adding only -lstdc++.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |