delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/06/02:11:05

Date: Thu, 6 Jul 1995 08:04:41 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: lebaron AT inrs-telecom DOT uquebec DOT ca
Subject: Re: libm symbols not found
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> gcc -lm mil.c
> mil.o Undefined symbol _sin referenced from text segment

The order of the object files and libraries on the command line
is significant, since gcc uses a one-pass linker.  You should
say
	gcc mil.c -lm

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019