This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ccs6 am437x How to call the library files

hi everyone

When I want to use the library files I get some errors.

I'm sure I've added header and library

please tell me how to call the library files and what should i do....

thanks

aria li

  • Moving this to the CCS forum.

  • Hi Aria,

    try just passing in the name of the library for the -l option. Remove the 'lib' prefix and the extension.

    "gpio_lib_test"

    I think the library path in the section option is fine (-L)

    Thanks

    ki

  • hi ki

      thanks for your advice.that error is ok.

      Now I want to use the library in  example But get some new errors.

    d:/.../am43xx_debug\libutils.a(console_utils.o) uses VFP register arguments, libuse_test_2.out does not
    d:/.../ld.exe: failed to merge target specific data of file

    D:/.../am43xx_debug\libutils.a(console_utils.o)

    please give me some advice......

    thanks 

    aria li

  • aria li said:
    d:/.../am43xx_debug\libutils.a(console_utils.o) uses VFP register arguments, libuse_test_2.out does not
    d:/.../ld.exe: failed to merge target specific data of file

    Sounds like there is some mismatch between the two object files, basically difference in how floating-point is handled (the library and the executable were built with different options for floating point)