From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jose Miguel A.C.Pires" To: help-gcc@gnu.org Subject: Compilation error Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <200002211831.SAA15847@pessoa.ci.uminho.pt> X-SW-Source: 2000-q1/msg00266.html Message-ID: <20000401000000.fIRTZeJtK99rs8S8LyBYVkv1u2o0iFBl1DgMSDY2R1g@z> *This message was transferred with a trial version of CommuniGate(tm) Pro* Hello I'm trying to compile this simple program #include #include int main(void) { float r=2; printf("A raiz de %2.0f e' %.6f", r, sqrt(r)); return 0; } but i get the following errors. /tmp/cca110161.o: In function `main': /tmp/cca110161.o(.text+0x17): undefined reference to `sqrt' I belive it's easy to solve but i have no one nearby to help me. Thanks in advance. J. M. Correia Pires -- ------------------------------------------------------------------------ Jose' Miguel A. Correia Pires Departamento de Fisica - Universidade do Minho Largo do Paco PT-4700-320 BRAGA (PORTUGAL) Phone: 351-253604320 Fax: 351-253678981 e-mail: jmcp@ci.uminho.pt -------------------------------------------------------------------------