I created a very simple c program using sqrt(), and used the math.h
include file. When I compile using gcc I get an "undefined reference
to sqrt" message.
You must link your program with the math library. Add "-lm" on the GCC
command line.
Re: How do I install this missing library? ... you really should be carefully following LSTC's installation... libg2c is part of gcc.... to tell a newcomer to compile.... like the source code to GNU tar, and make sure you understand what's ... (comp.os.linux.misc)
Possible GCC problem ... This isn't exactly strictly Red Hat related, but since I get all my GCC... I commented the array statement out and tried to compile it. ... Here is my program code for ... : undefined reference to `std::basic_ostream<char, ... (RedHat)
Re: HPGCC Questions ladies and gentlemen!!! ... No matter how you slice it in order to compile a C program you need to know ... it took a few hours just to get gcc running in my computer ... of the students that used an ide in the c++ class I took a few years ago. ... so why not use a data inspector if it's available? ... (comp.sys.hp48)
Re: Aquarius prolog so fast? ...Mercury cannot do all this because Mercury cannot keep track of the fact ... you need this capability quite rarely, ... Why not the alternative GCC back-end,... While Mercury can compile to the internal data structures of the gcc backend, ... (comp.lang.prolog)
Re: Compiling flops.c ... I am trying to compile flops.c on my Debian system. ... flops.c:: undefined reference to `dtime'... I also tried compiling it on a Solaris system with gcc 3.4 and had no ... (Debian-User)