Other Parts Discussed in Thread: BLE-STACK
Tool/software: TI C/C++ Compiler
Hello everyone,
I am working on a project that requires more than one gatt_profile,and is based on the Simple BLE Peripheral example included with BLE-STACK 1.50. I modified the original simple_gatt_profile to hold some of my BLE characteristics and that worked just fine. I added new files to add a second profile (just copy/pasted versions of simple_gatt_profile .h/.c) and modified it to contain my characteristics, but am now getting odd compiler errors. The compiler complains that it can't find types such as "bStatus_t" and "uint8" in the header.
I checked basic things like making sure my macro guards are correct, and that there aren't any duplicate types or names in either files, but am now stumped. My gut tells me that it's a link order thing, but I can't seem to figure out how the link order part of the preferences works. Do I add all the files in the project, and then manually attempt to re-order them?
I also tried (out of desperation) to just add the typedefs to the top of my second profile.h to see if I could fudge my way through it, but then the linker complains that my functions in my header don't exist.
I searched the forums to see if anyone else had similar issues, and found a couple similar posts, but none of the fixes I found worked.
Does anyone have any suggestions or pointers?
Thanks!
-Ben