Article View: gnu.gcc.help
Article #41486Using gcc with '-g -lm' on linux, help...
From: Institute Faculty of Electrical ...
Date: Thu, 21 Mar 1996 00:00
Date: Thu, 21 Mar 1996 00:00
17 lines
960 bytes
960 bytes
I was trying to compile a program using gcc 2.6.3 under linux 1.2.8. The command I used was gcc -g test.c -lm The compilation stalled with the message ld : Output files require shared library 'libc.so.4' whenever I used the math library like exp() in test.c. I checked /lib and 'libc.so.4' was a symbolic link to 'libc.so.4.6.27'. The latter file occupied ~614k bytes. Could anyone help me get over this problem ? Email to "ieecwy@ccunix.ccu.edu.tw" would be greately appreciated. C. Yeh
Technical Details
Message-ID:
<4irvec$a9p@helios.ccunix.ccu.edu.tw>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,16c00feed1d8688,start X-Google-Attributes: gid11318c,public From: ieecwy@ccunix.ccu.edu.tw (Institute Faculty of Electrical Engineering) Subject: Using gcc with '-g -lm' on linux, help... Date: 1996/03/21 Message-ID: <4irvec$a9p@helios.ccunix.ccu.edu.tw> X-Deja-AN: 143432597 organization: National Chung Cheng Univ.,Min-Shung,Chiayi,Taiwan,R.O.C newsgroups: gnu.gcc.help