This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linking math library (C166 tool set, ST10F276), using uVision 4 IDE

Hi,

I am using the keil IDE uvision 4.0, If try to build the project with a file that uses math functions (i have included a reference to math.h), i get linker errors. I am using the IDE linker and not invoking from the command prompt, at first i thought that the IDE does not know where the C167FPS.LIB file is ? (C:\Keil\C166\lib), i checked the settings and they seem to be right, i am not sure if i need to manually specify the library to the linker ?, if so , how so i do not see a option in the project settings (i see, C166 locate, C166 misc) but no option to link to a library file. Could somebody point me in the right direction ?

Thanks for all the help,
Pavan.

Parents
  • as having a file name verbatim to a function in library was causing this issue ?

    That wasn't causing it. The conflict was between module names. For C files, those are, basically, the source filenames (without the .c).

    I.e. the C library has its implementation of standard library function log() in a file called, not altogether surprisingly, log.c. The module name of that is LOG (that's what the error message showed). The module name of your own source file log.c is also LOG. Thus the conflict.

Reply
  • as having a file name verbatim to a function in library was causing this issue ?

    That wasn't causing it. The conflict was between module names. For C files, those are, basically, the source filenames (without the .c).

    I.e. the C library has its implementation of standard library function log() in a file called, not altogether surprisingly, log.c. The module name of that is LOG (that's what the error message showed). The module name of your own source file log.c is also LOG. Thus the conflict.

Children
No data