How to create a shared or static library to be used in other Cascades C++ projects
on 09-12-201202:04 PM - edited on 04-01-201410:15 AM by mahrens
This article will show you how to create shared and or static libraries to be used by other Cascades™ C++ projects.
Shared libraries are usually preferred, however, in some cases, static libraries may be required; (e.g. statically linked code tends to be executed more efficiently than the dynamically linked code, which may be very important for high performance.)
The screenshots in this article were taken from BlackBerry® 10 Native SDK(Momentics IDE) on the Mac platform, which are also applicable to other platforms with the exception of paths.
From BlackBerry 10 Native SDK(Momentics IDE), select File > New > BlackBerry Project. Create a Static or Shared library project type.
2. Input project name and select language, then, press "Next" button
3. Choose API Level, then, press "Finish" button.
4. Once the project template is created, add the source files to the project.
5. Build the project.
For more information and code samples, check out a shared library template and sample app on GitHub.