Bug 39824
Summary: | gcc generates call to non-existent runtime function | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | j. alan eldridge <alane> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-05-09 09:51:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
j. alan eldridge
2001-05-09 08:48:27 UTC
I'm aware of this, have solved it already - see http://gcc.gnu.org/ml/gcc-patches/2001-05//msg00275.html http://sources.redhat.com/ml/libc-hacker/2001-05/msg00003.html These patches will appear in gcc-2.96-85 and glibc-2.2.3-6 respectively. I have the Red Hat 7.1 installed on my computer, and I had a little problem with the gcc compiler. Please, I would like, if possible, of obtaining an answer for the following question: Why the simple source code below when compiled using the gcc (gcc test.c -o test) it generates the following message: undefined reference to `sqrt' ? (all the libraries are installed!!!) /*Program Test*/ #include <stdio.h> #include <stdlib.h> #include <math.h> int main (void) { int i; float s; for (i = 0 ; i <= 10 ; i++){ s = sqrt(i); printf("\n sqrt(%d) = %f", i , s); } } Thank you. lederman.br |