Article View: comp.os.linux.setup
Article #8Re: problems with GCC
From: Toby K Hay
Date: Wed, 17 Apr 1996 03:42
Date: Wed, 17 Apr 1996 03:42
16 lines
1249 bytes
1249 bytes
Chano Gómez Martínez (chano@ran.es) wrote: : First of all, I want to apologize for my awful English. : I'm trying to port a C program from Borland C++ 3.1 to GCC under : Linux. : My problem is that I can't use any function from math.h !!! : The file is correctly #include'd ( in fact, I get no compilation : errors ) but the linker always tells me something like : snip Your English is impeccable. I expect your only problem with gcc is that you've neglected to link the math library by typing -lm when you invoke gcc. I use cc to compile and link my ANSI C programs developed in Turbo C 3.1 with the following command: cc MyProg.c -lm -O I expect gcc is the same. Toby Hay thay@uoguelph.ca
Technical Details
Message-ID:
<4l1pbg$ac2@ccshst05.uoguelph.ca>Path:
arc1-ca.pugleaf.net!ccshst05.cs.uoguelph.ca!ccshst01!thayReferences:
<4l1and$iql@news.ran.es>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ccshst05.cs.uoguelph.ca!ccshst01!thay From: thay@uoguelph.ca (Toby K Hay) Newsgroups: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++ Subject: Re: problems with GCC Followup-To: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++ Date: 17 Apr 1996 03:42:40 GMT Organization: University of Guelph Message-ID: <4l1pbg$ac2@ccshst05.uoguelph.ca> References: <4l1and$iql@news.ran.es> NNTP-Posting-Host: ccshst01.uoguelph.ca X-Newsreader: TIN [version 1.2 PL2]