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.

building static library setting problem

Hello,

I'm a beginner of linux programming and I want to programming the PRUs of my BeagleBone Black processor.

It need to include the SDK library to setup the PRUs so I setting my CCS like pictures below:

The header Include setting was done without problem, but the library setting wasn't. CCS always tell me that it can't find the library but I'm sure the file is locate at the position exactly.

At the same time, I try to make some different setting in the Libraries tab like:

libprussdrv.a 

or

D:\BeagleBoneBlackDevelopment\SDKnPackage\pru_sdk\lib\libprussdrv.a

...etc.

But CCS show me the same error message again and again. Please tell me how to fix my setting.

Thanks.

  • Hi Wei-Jung,

    libraries are inlcuded in the linkers "file search path".  See this wiki.  Also note that you may encounter an issue with paths that have spaces or special characters.  If possibly move to one without.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options


    Best regards,
    Lisa

  • Wei-jung Song said:

    At the same time, I try to make some different setting in the Libraries tab like:

    libprussdrv.a 

    or

    D:\BeagleBoneBlackDevelopment\SDKnPackage\pru_sdk\lib\libprussdrv.a

    ...etc.

    The library name passed to the -l option of the GNU Linker should not contain the "lib" prefix or ".a" suffix. So, for example, specify prussdrv instead of libprussdrv.a.

    There is a GNU linker reference here.