Problems with slackware and C/C++

Problems with slackware and C/C++

Post by Zachary Carte » Sun, 25 Aug 1996 04:00:00



I'm getting into C/C++ programming on linux, starting
out by recompiling a bunch of things I wrote using Borland
C++.  My problem is this, when I try to compile a C++ program
which makes use of the math.h library, I get 'undefined
refernence' errors for all of the math functions.  This is
really hacking me off.  What's wrong?
     I've checked in the header file library, and math.h
is there.  I'm running Slackware 3.0.

 
 
 

Problems with slackware and C/C++

Post by Zachary Carte » Sun, 25 Aug 1996 04:00:00



> I'm getting into C/C++ programming on linux, starting
> out by recompiling a bunch of things I wrote using Borland
> C++.  My problem is this, when I try to compile a C++ program
> which makes use of the math.h library, I get 'undefined
> refernence' errors for all of the math functions.  This is
> really hacking me off.  What's wrong?
>      I've checked in the header file library, and math.h
> is there.  I'm running Slackware 3.0.

OK, nevermind.  After RTFM, I see I need to compile
using -lm to link the math library.