On Wednesday 29 December 2004 16:29, Vince Littler wrote:
On Wednesday 29 December 2004 10:30 pm, Mike Adolf wrote:
I am new to Kdevelop and constructed a C project with multiple subroutines and references to C library functions, like fmod. I am letting the IDE do everything is automake mode. All compiles OK, but a build gives unsatisfied references to all my routines and all C lib routines.
To see what was going on, I made a simple C hello.c using the Project New 'wizard' included
and add call to fmod. Again, doing a build gives a reference error for fmod? I thought the IDE in auto mode would take care of finding the correct libs? Any Suggestions? Mike
If it has compiled [without warnings] but complains at link time, then my rule of thumb is that the bit which is being complained about is OK and something else is wrong.
A successful compile shows that your C program call to fmod() will agree with
. But an object module with fmod() cannot be found. And your own routines are not being found - are you linking in compiled object code? - or just compiling more C? - or is KDevelop not actually compiling it for you? I would incline to look at library paths and paths to object modules. Note the bit about without warnings, these may invalidate the reasoning above...
I don't know KDevelop myself, just going on compilers and linkers I have done battle with and won.
Vince
Thanks, Under project options/configure, I set -lm in linker flages. Now it finds the libm library and I am back in business. Mike