Hello,
Perhaps this question would be better off in a gnu group, but since I use the
Slackware distribution:
I am trying to compile c++ programs, but they seem unable to find or
use the c include files like <stdio.h> and <math.h>. For C everything works fine.
Did I miss some setup things? Or what am I doing wrong? I do have the c++
libraries and include files installed ...
An example of what happens:
#include <math.h>
#include <stdio.h>
main(){
float x;
x = cos(3.14);
printf("Hallo");
gcc -o test test.ccQuote:}
/tmp/cca041071.o: Undefined symbol _cos referenced from text segment
Compilation exited abnormally with code 1 at Sun Sep 25 13:40:34
Thanks for any help,
Peter
--
Peter Tieleman
telephone: 31-50-634337 9717 LH Groningen
fax: 31-50-634800 The Netherlands
address: Dept. of Biophysical Chemistry tel: 31-50-183714
Nijenborgh 4
9747 AG Groningen
The Netherlands