- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I create a simple MY library project in which create one header file i.e simple.h and one source file simple.c and write one routine in simple .c and build it.It successfully build.
I create one BLE application project PSOC4 ble and include this library in both location (dependencies section and tool->option->project Management->default dependencies set path for library) , but when I use API of simple.c file Its shown error. I can't access API of MYlibrary .
I missing any setting or any step while accessing of myLibrary's API.
Thanks in Advance
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to add the folder to the additional library folders. The you specify the additional library as 'YourName' (when the file is called 'libYourName.a'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is probably a naming problem: A library must be named libYourname.a (a prepended "lib" and an appended ".a"). In the project settings you add the lib "Yourname".
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello bob,
can you provide setting where i Have to add Lib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Project->Build Settings->Linker->General->Additional Libraries
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello bob,
When i give path of lib.a file , then it shows build error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to add the folder to the additional library folders. The you specify the additional library as 'YourName' (when the file is called 'libYourName.a'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you provide us with some screenshots to see what you specified? lib.a is an invalid name for a library
Bob