Is there a way to include (eg) "-lm" in source code so that when it's compiled, this switch will be used without having to put it on the command-line?
Is there a way to include (eg) "-lm" in source code so that when it's compiled, this switch will be used without having to put it on the command-line?
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Not AFAIK, but why not use a makefile for that stuff?
Looks like you need a makefile
Actually it's okay -- I can't use a makefile, it was for a prime number thing at "sphere" and I thought it would be a little silly if you had to write your own sqrt(). But it seems like using #include <math.h> was enough, perhaps they add the switch.
And after spending all afternoon there, I decided to give up on "sphere"...
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge